log

log(sql, name = "SQL", binds = [], statement_name = nil) Instance Protected methods

unprepared_statement

unprepared_statement() Instance Public methods

<=>

==(other) Instance Public methods Equivalent to String#<=>. class BlogPost extend ActiveModel::Naming end BlogPost.model_name <=> 'BlogPost' # => 0 BlogPost.model_name <=> 'Blog' # => 1 BlogPost.model_name <=> 'BlogPosts' # => -1

new

new(attributes = nil) Class Public methods Returns a new instance of ActionController::Parameters. Also, sets the permitted attribute to the default value of ActionController::Parameters.permit_all_parameters. class Person < ActiveRecord::Base end params = ActionController::Parameters.new(name: 'Francesco') params.permitted? # => false Person.new(params) # => ActiveModel::ForbiddenAttributesError ActionController::Parameters.permit_all_parameters = true params = Action

call

call(env) Instance Public methods Define the Rack API for this engine.

url_for

url_for(string) Instance Public methods basic #url_for that can be overridden for more robust functionality

change_column_default

change_column_default(table_name, column_name, default) Instance Public methods

cookies

cookies() Instance Public methods A map of the cookies returned by the last response, and which will be sent with the next request.

change_column_sql

change_column_sql(table_name, column_name, type, options = {}) Instance Protected methods

parent

parent() Instance Public methods Returns the module which contains this one according to its name. module M module N end end X = M::N M::N.parent # => M X.parent # => M The parent of top-level and anonymous modules is Object. M.parent # => Object Module.new.parent # => Object