test_inheritance_save

test_inheritance_save() Instance Public methods

default_scope

default_scope(scope = nil) Instance Protected methods Use this macro in your model to set a default scope for all operations on the model. class Article < ActiveRecord::Base default_scope { where(published: true) } end Article.all # => SELECT * FROM articles WHERE published = true The default_scope is also applied while creating/building a record. It is not applied while updating a record. Article.new.published # => true Article.create.published # => true (You c

num_waiting

num_waiting() Instance Public methods Returns the number of threads currently waiting on this queue.

config

config() Instance Public methods

append_before_action

append_before_action(names, block) Instance Public methods Append a callback before actions. See #_insert_callbacks for parameter details. Aliased as append_before_filter.

unshift

unshift(path) Instance Public methods

render_to_string_with_inline_and_render

render_to_string_with_inline_and_render() Instance Public methods

request_via_redirect

request_via_redirect(http_method, path, parameters = nil, headers_or_env = nil) Instance Public methods Performs a request using the specified method, following any subsequent redirect. Note that the redirects are followed until the response is not a redirectâthis means you may run into an infinite loop if your redirect loops back to itself.

write

write(name, value, options = nil) Instance Public methods Writes the value to the cache, with the key. Options are passed to the underlying cache implementation.

test_inheritance_new_with_default_class

test_inheritance_new_with_default_class() Instance Public methods