qualified_const_set

qualified_const_set(path, value) Instance Public methods

us_zones

us_zones() Class Public methods A convenience method for returning a collection of TimeZone objects for time zones in the USA.

test_inheritance_find_all

test_inheritance_find_all() Instance Public methods

arguments

arguments(array) Instance Public methods Sets default arguments on generator invocation. This can be overwritten when invoking it. arguments %w(app_name --skip-active-record)

create_generated_attribute

create_generated_attribute(attribute_type, name = 'test', index = nil) Instance Public methods Create a Rails::Generators::GeneratedAttribute by supplying the attribute type and, optionally, the attribute name: create_generated_attribute(:string, 'name')

reconnect!

reconnect!() Instance Public methods Close then reopen the connection.

extractable_options?

extractable_options?() Instance Public methods By default, only instances of Hash itself are extractable. Subclasses of Hash may implement this method and return true to declare themselves as extractable. If a Hash is extractable, Array#extract_options! pops it from the Array when it is the last element of the Array.

reset!

reset!() Instance Public methods Reset the state of this connection, directing the DBMS to clear transactions and other connection-related server-side state. Usually a database-dependent operation. The default implementation does nothing; the implementation should be overridden by concrete adapters.

assert_field_default_value

assert_field_default_value(attribute_type, value) Instance Public methods Asserts the given attribute type gets a proper default value: assert_field_default_value :string, "MyString"

create

create() Instance Public methods