Module: Rad::ControllerRoutingHelper::ClassMethods

Defined in:
lib/rad/integration/router/controller_routing_helper.rb

Instance Method Summary collapse

Instance Method Details

#persist_params(*args) ⇒ Object

persist_params controller filters



10
11
12
13
14
15
16
17
18
# File 'lib/rad/integration/router/controller_routing_helper.rb', line 10

def persist_params *args
  if args.empty?
    before :persist_params
  elsif args.first.is_a? Hash
    before :persist_params, args.first
  else
    before :persist_params, only: args.first
  end
end