version

version() Instance Public methods

prepend_around_action

prepend_around_action(names, block) Instance Public methods Prepend a callback around actions. See #_insert_callbacks for parameter details. Aliased as prepend_around_filter.

add_text

add_text(src, text) Instance Public methods

encode_with

encode_with(coder) Instance Public methods Populate coder with attributes about this record that should be serialized. The structure of coder defined in this method is guaranteed to match the structure of coder passed to the init_with method. Example: class Post < ActiveRecord::Base end coder = {} Post.new.encode_with(coder) coder # => {"attributes" => {"id" => nil, ... }}

redirect_to_url

redirect_to_url() Instance Public methods

quietly

quietly() Instance Public methods Silences both STDOUT and STDERR, even for subprocesses. quietly { system 'bundle install' }

to_param

to_param(method_name = nil) Instance Public methods Defines your model's to_param method to generate Ć¢prettyĆ¢ URLs using method_name, which can be any attribute or method that responds to to_s. class User < ActiveRecord::Base to_param :name end user = User.find_by(name: 'Fancy Pants') user.id # => 123 user_path(user) # => "/users/123-fancy-pants" Values longer than 20 characters will be truncated. The value is truncated word by word. user = User.find_by(name: '

begin_db_transaction

begin_db_transaction() Instance Public methods

slice!

slice!(*keys) Instance Public methods Replaces the hash with only the given keys. Returns a hash containing the removed key/value pairs. { a: 1, b: 2, c: 3, d: 4 }.slice!(:a, :b) # => {:c=>3, :d=>4}

version

version() Class Public methods Returns the version of the currently loaded ActionMailer as a Gem::Version