lib/gris/grape_extensions/crud_helpers.rb in gris-0.2.0 vs lib/gris/grape_extensions/crud_helpers.rb in gris-0.2.1
- old
+ new
@@ -15,10 +15,10 @@
present instance, with: options[:with]
end
def permitted_params(options = {})
options = { include_missing: false }.merge(options)
- process_datetime_params(params) if keys_to_convert
+ process_datetime_params(params) if respond_to?(:process_datetime_params)
declared(params, options)
end
# extend all endpoints to include this
Grape::Endpoint.send :include, self if defined?(Grape)