authorization() Instance Public methods Returns the authorization header regardless of whether it was specified directly or through one of the proxy alternatives.
started_request_message(request) Instance Protected methods Started GET â/session/newâ for 127.0.0.1 at 2012-09-26 14:51:42 -0700
stringify_keys!() Instance Public methods
new() Class Public methods
signature() Instance Public methods The parameters in the signature may have reserved Ruby words, in order to prevent errors, we start each param name with `_`. Extended in activerecord-deprecated_finders
params_array_from(raw_params) Instance Public methods Takes #raw_params and turns it into an array of parameters
uuid(name, options = {}) Instance Public methods
blank?() Instance Public methods aliases empty? empty?
exec_update(sql, name, binds) Instance Public methods Alias for: exec_delete
valid?(context = nil) Instance Public methods Runs all the specified validations and returns true if no errors were added otherwise false. class Person include ActiveModel::Validations attr_accessor :name validates_presence_of :name end person = Person.new person.name = '' person.valid? # => false person.name = 'david' person.valid? # => true Context can optionally be supplied to define which callbacks to test against (the context is defined on the validations using
Page 177 of 2275