Module: Customs::ControlTraffic

Defined in:
lib/customs/control_traffic.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/customs/control_traffic.rb', line 22

def self.included base
  base.send :extend, ClassMethods

  base.class_attribute :controller_resource_class, :instance_reader => false
  base.controller_resource_class = ControllerResource

  base.class_attribute :resource_name,  :instance_reader => false
  base.class_attribute :resource_class, :instance_reader => false

  base.define_callbacks :save, :destroy
end