json_to_string

json_to_string(object) Instance Public methods

new

new(types, name, temporary, options, as = nil) Class Public methods

cleanup

cleanup(options = nil) Instance Public methods Preemptively iterates through all stored keys and removes the ones which have expired.

end_of_hour

end_of_hour() Instance Public methods Returns a new DateTime representing the end of the hour (hh:59:59). at_end_of_hour

fifth

fifth() Instance Public methods Find the fifth record. If no order is defined it will order by primary key. Person.fifth # returns the fifth object fetched by SELECT * FROM people Person.offset(3).fifth # returns the fifth object from OFFSET 3 (which is OFFSET 7) Person.where(["user_name = :u", { u: user_name }]).fifth

third

third() Instance Public methods Equal to self[2]. %w( a b c d e ).third # => "c"

view_cache_dependency

view_cache_dependency(&dependency) Instance Public methods

register_interceptor

register_interceptor(interceptor) Class Public methods Register an Interceptor which will be called before mail is sent. Either a class, string or symbol can be passed in as the Interceptor. If a string or symbol is passed in it will be camelized and constantized.

remove_column_sql

remove_column_sql(table_name, column_name, type = nil, options = {}) Instance Protected methods

destroy!

destroy!() Instance Public methods Deletes the record in the database and freezes this instance to reflect that no changes should be made (since they can't be persisted). There's a series of callbacks associated with destroy!. If the before_destroy callback return false the action is cancelled and destroy! raises ActiveRecord::RecordNotDestroyed. See ActiveRecord::Callbacks for further details.