destroy

destroy(id) Instance Public methods Destroy an object (or multiple objects) that has the given id. The object is instantiated first, therefore all callbacks and filters are fired off before the object is deleted. This method is less efficient than ActiveRecord#delete but allows cleanup methods and other actions to be run. This essentially finds the object (or multiple objects) with the given id, creates a new object from the attributes, and then calls destroy on it. Parameters id

megabytes

megabytes() Instance Public methods Also aliased as: megabyte

new

new(obj, dispid, gettypes, settypes) Class Public methods

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

build_modern_indicies

build_modern_indicies() Instance Public methods Builds indicies for RubyGems 1.2 and newer. Handles full, latest, prerelease

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

background_eval_str

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

item_state_for_column

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

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.