Module: DecentExposure::ControllerInstanceMethods

Defined in:
lib/decent_exposure/controller_instance_methods.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



5
6
7
# File 'lib/decent_exposure/controller_instance_methods.rb', line 5

def self.included(klass)
  klass.hide_action(:over_expose)
end

Instance Method Details

#over_expose(name, val) ⇒ Object



9
10
11
12
# File 'lib/decent_exposure/controller_instance_methods.rb', line 9

def over_expose(name, val)
  @_resources = {}
  @_resources[name] = val
end