Method: Happy::Request#params
- Defined in:
- lib/happy/request.rb
#params ⇒ Object
Override the default #params method so it returns a Hash with indifferent access if ActiveSupport is available.
10 11 12 13 14 15 16 |
# File 'lib/happy/request.rb', line 10 def params @env['happy.params'] ||= if defined?(HashWithIndifferentAccess) super.with_indifferent_access else super end end |