Skip to content

remove action and controller from your rails params.

License

Notifications You must be signed in to change notification settings

gatleon/gatleon-params2

Repository files navigation

gatleon-params2

gatleon-params2

remove action and controller from your rails params

installation

add this line to your application's Gemfile:

gem "gatleon-rails"

and then execute:

$ bundle install

add to your application_controller.rb

class ApplicationController < ActionController::Base
  include Gatleon::Params2
  ...

  def some_action
    params2 # access params2 (query and post params from request - but without action, controller keys.)
  end
end

license

the gem is available as open source under the terms of the MIT License.