Module: RoarExtensions::Helpers::EmbeddedParameterParsing
- Defined in:
- lib/roar_extensions/helpers/embedded_parameter_parsing.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 |
# File 'lib/roar_extensions/helpers/embedded_parameter_parsing.rb', line 4 def self.included(base) base.class_eval do before_filter :parse_embedded_params_filter end end |
Instance Method Details
#parse_embedded_params(embedded_str) ⇒ Object
14 15 16 |
# File 'lib/roar_extensions/helpers/embedded_parameter_parsing.rb', line 14 def () (( || '').split(',')) end |
#parse_embedded_params_filter ⇒ Object
10 11 12 |
# File 'lib/roar_extensions/helpers/embedded_parameter_parsing.rb', line 10 def params[:embedded] = (params[:embedded]) end |