Module: Padrino::ParamsProtection
- Defined in:
- lib/padrino-core/application/params_protection.rb
Overview
Padrino application module providing means for mass-assignment protection.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
11 12 13 14 |
# File 'lib/padrino-core/application/params_protection.rb', line 11 def included(base) base.send(:include, InstanceMethods) base.extend(ClassMethods) end |
.registered(app) ⇒ Object
7 8 9 |
# File 'lib/padrino-core/application/params_protection.rb', line 7 def registered(app) included(app) end |