tidy_bytes

tidy_bytes(force = false) Instance Public methods Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent resulting in a valid UTF-8 string. Passing true will forcibly tidy all bytes, assuming that the string's encoding is entirely CP1252 or ISO-8859-1.

down

down() Class Public methods

action_has_layout?

action_has_layout?() Instance Public methods Controls whether an action should be rendered using a layout. If you want to disable any layout settings for the current action so that it is rendered without a layout then either override this method in your controller to return false for that action or set the action_has_layout attribute to false before rendering.

to_date

to_date() Instance Public methods

supports_transaction_isolation?

supports_transaction_isolation?() Instance Public methods

prepare_column_options

prepare_column_options(column, types) Instance Public methods This can be overridden on a Adapter level basis to support other extended datatypes (Example: Adding an array option in the PostgreSQLAdapter)

configurations

configurations() Class Public methods Returns fully resolved configurations hash

validate

validate(record) Instance Public methods Override this method in subclasses with validation logic, adding errors to the records errors array where necessary.

dasherize

dasherize(underscored_word) Instance Public methods Replaces underscores with dashes in the string. 'puni_puni'.dasherize # => "puni-puni"

initializer

initializer(name, opts = {}, &blk) Instance Public methods