Module ConsoleUpdate

  1. lib/console_update/filter/yaml.rb
  2. lib/console_update/filter.rb
  3. lib/console_update/named_scope.rb
  4. lib/console_update.rb
  5. show all

Methods

public class

  1. enable_named_scope

Attributes

editor [RW]
filter [RW]

Public class methods

enable_named_scope ()

Adds a global scoped method, console_update(), which can be chained to the end of any named scopes. For example, if Url has a named scope :tagged_with:

Url.tagged_with('physics').console_update
[show source]
# File lib/console_update/named_scope.rb, line 7
  def self.enable_named_scope  
    ActiveRecord::NamedScope::Scope.send :include, NamedScope
  end