Module: Customs::ControlTraffic::ClassMethods

Defined in:
lib/customs/control_traffic.rb

Instance Method Summary collapse

Instance Method Details

#cancan_resource_classObject



35
36
37
38
39
40
41
# File 'lib/customs/control_traffic.rb', line 35

def cancan_resource_class
  if ancestors.map(&:to_s).include? "InheritedResources::Actions"
    super
  else
    self.controller_resource_class
  end
end