Class: BiolaLogs::Generators::Params
- Defined in:
- lib/biola_logs/generators/params.rb
Constant Summary collapse
- NON_QUERY_STRING_PARAMS =
['controller', 'action', 'id']
- SUPPORTED_HTTP_METHODS =
We don’t need form POST data in the logs since it can be very verbose.
['GET']
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from BiolaLogs::Generators::Base
Instance Method Details
#to_hash ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/biola_logs/generators/params.rb', line 8 def to_hash if method_supported? && clean_params.any? {params: clean_params.to_json} else {} end end |