supports_count_distinct?

supports_count_distinct?() Instance Public methods Does this adapter support using DISTINCT within COUNT? This is true for all adapters except sqlite.

get

get(key) Instance Public methods Get messages for key. person.errors.messages # => {:name=>["cannot be nil"]} person.errors.get(:name) # => ["cannot be nil"] person.errors.get(:age) # => nil

path_parameters

path_parameters() Instance Public methods Returns a hash with the parameters used to form the path of the request. Returned hash keys are strings: {'action' => 'my_action', 'controller' => 'my_controller'} See symbolized_path_parameters for symbolized keys.

find

find(preview) Class Public methods Find a mailer preview by its underscored class name

at_end_of_week

at_end_of_week(start_day = Date.beginning_of_week) Instance Public methods Alias for: end_of_week

to_integer

to_integer(value) Instance Public methods

active_threadsafe?

active_threadsafe?() Instance Public methods Adapter should redefine this if it needs a threadsafe way to approximate if the connection is active

dup

dup Instance Public methods Duped objects have no id assigned and are treated as new records. Note that this is a âshallowâ copy as it copies the object's attributes only, not its associations. The extent of a âdeepâ copy is application specific and is therefore left to the application to implement according to its need. The dup method does not preserve the timestamps (created|updated)_(at|on).

new

new(klass, table, values = {}) Class Public methods

start

start(name, id, payload) Instance Public methods