ActionParameter - Single Responsability Principle for Rails Controller's Parameters.
ActionParameter helps you move all your parameter’s logic from controllers into it’s own class. This way you’ll keep your controllers dry and they would be easier to test. Works with Rails 3 onwards and plays nice with StrongParameters. Link: https://github.com/edelpero/action_parameter
Post a comment