initialize_internals_callback

initialize_internals_callback() Instance Public methods

await

await() Instance Public methods

mattr_writer

mattr_writer(*syms) Instance Public methods Defines a class attribute and creates a class and instance writer methods to allow assignment to the attribute. module HairColors mattr_writer :hair_colors end class Person include HairColors end HairColors.hair_colors = [:brown, :black] Person.class_variable_get("@@hair_colors") # => [:brown, :black] Person.new.hair_colors = [:blonde, :red] HairColors.class_variable_get("@@hair_colors") # => [:blonde, :red] If you want to op

transaction

transaction(options = {}) Instance Public methods Runs the given block in a database transaction, and returns the result of the block. Nested transactions support Most databases don't support true nested transactions. At the time of writing, the only database that supports true nested transactions that we're aware of, is MS-SQL. In order to get around this problem, transaction will emulate the effect of nested transactions, by using savepoints: dev.mysql.com/doc/refman/5.0/en/savep

before_setup

before_setup() Instance Public methods

to_formatted_s

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

root=

root=(value) Instance Public methods

timestamps

timestamps(options = {}) Instance Public methods Adds timestamps (created_at and updated_at) columns to the table. See ActiveRecord::ConnectionAdapters::SchemaStatements#add_timestamps t.timestamps

today?

today?() Instance Public methods Returns true if the current object's time falls within the current day.

head?

head?() Instance Public methods Is this a HEAD request? Equivalent to request.request_method_symbol == :head.