Module: Hammock::CannedScopes

Defined in:
lib/hammock/canned_scopes.rb

Overview

TODO This file is horribly non-DRY.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Constant Summary collapse

MixInto =
ActiveRecord::Base
StandardVerbs =

TODO Put this somewhere better.

[:read, :write, :index, :create]

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
12
# File 'lib/hammock/canned_scopes.rb', line 9

def self.included base
  base.send :include, InstanceMethods
  base.send :extend, ClassMethods
end