new

new() Class Public methods

_normalize_options

_normalize_options(options) Instance Public methods Normalize options. :api: plugin

table_alias_for

table_alias_for(table_name) Instance Public methods Truncates a table alias according to the limits of the current adapter.

test_inherits_custom_primary_key

test_inherits_custom_primary_key() Instance Public methods

render_call_to_partial_with_layout_in_main_layout_and_within_content_for_layout

render_call_to_partial_with_layout_in_main_layout_and_within_content_for_layout() Instance Public methods

publish

publish(name, *args) Instance Public methods

column_for_attribute

column_for_attribute(name) Instance Public methods Returns the column object for the named attribute. Returns nil if the named attribute not exists. class Person < ActiveRecord::Base end person = Person.new person.column_for_attribute(:name) # the result depends on the ConnectionAdapter # => #<ActiveRecord::ConnectionAdapters::SQLite3Column:0x007ff4ab083980 @name="name", @sql_type="varchar(255)", @null=true, ...> person.column_for_attribute(:nothing) # => nil

to_path

to_path() Instance Public methods Alias for: to_s

load_runner

load_runner(app=self) Instance Public methods Load Rails runner and invoke the registered hooks. Check Rails::Railtie.runner for more info.

many?

many?() Instance Public methods Returns true if the enumerable has more than 1 element. Functionally equivalent to enum.to_a.size > 1. Can be called with a block too, much like any?, so people.many? { |p| p.age > 26 } returns true if more than one person is over 26.