swapcase

swapcase() Instance Public methods Converts characters in the string to the opposite case. 'El Cañón".mb_chars.swapcase.to_s # => "eL cAÃÃN"

conditional_hello

conditional_hello() Instance Public methods

inspect

inspect() Instance Public methods Returns a string like 'Post(id:integer, title:string, body:text)'

to_default_s

to_default_s(format = :default) Instance Public methods Alias for: to_s

assert_dom_equal

assert_dom_equal(expected, actual, message = nil) Instance Public methods Test two HTML strings for equivalency (e.g., identical up to reordering of attributes) # assert that the referenced method generates the appropriate HTML string assert_dom_equal '<a href="http://www.example.com">Apples</a>', link_to("Apples", "http://www.example.com")

type_cast

type_cast(value) Instance Public methods

singular_name

singular_name() Instance Protected methods FIXME: We are avoiding to use alias because a bug on thor that make this method public and add it to the task list.

controller

controller() Instance Public methods Gets a new instance of a controller object. This method assumes an ApplicationController exists, and it extends ActionController::Base

permit!

permit!() Instance Public methods Sets the permitted attribute to true. This can be used to pass mass assignment. Returns self. class Person < ActiveRecord::Base end params = ActionController::Parameters.new(name: 'Francesco') params.permitted? # => false Person.new(params) # => ActiveModel::ForbiddenAttributesError params.permit! params.permitted? # => true Person.new(params) # => #<Person id: nil, name: "Francesco">

table_exists?

table_exists?(table_name) Instance Public methods