valid_for_generate

valid_for_generate(group_flag=nil) Instance Public methods

joined_includes_values

joined_includes_values() Instance Public methods Joins that are also marked for preloading. In which case we should just eager load them. Note that this is a naive implementation because we could have strings and symbols which represent the same association, but that aren't matched by this. Also, we could have nested hashes which partially match, e.g. { a: :b } & { a: [:b, :c] }

after_commit

after_commit(*args, &block) Instance Public methods This callback is called after a record has been created, updated, or destroyed. You can specify that the callback should only be fired by a certain action with the :on option: after_commit :do_foo, on: :create after_commit :do_bar, on: :update after_commit :do_baz, on: :destroy after_commit :do_foo_bar, on: [:create, :update] after_commit :do_bar_baz, on: [:update, :destroy] Note that transactional fixtures do not play well

setup_params

setup_params(config, req, res) Instance Public methods This format specification is a subset of mod_log_config of Apache: %a Remote IP address %b Total response size %e{variable} Given variable in ENV %f Response filename %h Remote host name %{header}i Given request header %l Remote logname, always â-â %m Request method %{attr}n Given request attribute from req.attributes %{header}o Given response header %p Server's request port %{format}p The can

load

load() Instance Public methods Causes the records to be loaded from the database if they have not been loaded already. You can use this if for some reason you need to explicitly load some records before actually using them. The return value is the relation itself, not the records. Post.where(published: true).load # => #<ActiveRecord::Relation>

reconnect!

reconnect!() Instance Public methods Also aliased as: reset!

inspect

inspect() Instance Public methods Provide human-readable stringification of class state.

tag_remove

tag_remove(tag, *indices) Instance Public methods

accept_heading

accept_heading(heading) Instance Public methods Adds heading to the output as a paragraph

_unset_global_var

_unset_global_var(var) Class Public methods