default_options=

default_options=(value = nil) Class Public methods Allows to set defaults through app configuration: config.action_mailer.default_options = { from: "no-reply@example.org" } default

gmt_offset

time.gmt_offset â fixnum Instance Public methods Returns the offset in seconds between the timezone of time and UTC. t = Time.gm(2000,1,1,20,15,1) #=> 2000-01-01 20:15:01 UTC t.gmt_offset #=> 0 l = t.getlocal #=> 2000-01-01 14:15:01 -0600 l.gmt_offset #=> -21600

is_ancestor?

is_ancestor?(des) Instance Public methods Alias for: isancestor

item_state_for_column

item_state_for_column(item, column, *args) Instance Public methods Alias for: item_state_forcolumn

background_eval_str

background_eval_str(cmd, *eval_args) Class Public methods Alias for: bg_eval_string

human_attribute_name

human_attribute_name(attribute, options = {}) Instance Public methods Transforms attribute names into a more human format, such as âFirst nameâ instead of âfirst_nameâ. Person.human_attribute_name("first_name") # => "First name" Specify options with additional translating options.

token_DOM

token_DOM(first, last=None) Instance Public methods Also aliased as: token_dom, token_domtokens, token_dom_tokens

update

cipher.update(data [, buffer]) â string or buffer Instance Public methods Encrypts data in a streaming fashion. Hand consecutive blocks of data to the update method in order to encrypt it. Returns the encrypted data chunk. When done, the output of #final should be additionally added to the result. Parameters data is a nonempty string. buffer is an optional string to store the result.

QueryValue

QueryValue(hkey, name) Instance Public methods

[]=

[]=(attr_name, value) Instance Public methods Updates the attribute identified by attr_name with the specified value. (Alias for the protected write_attribute method). class Person < ActiveRecord::Base end person = Person.new person[:age] = '22' person[:age] # => 22 person[:age] # => Fixnum