spec/dummy/app/api/dummy_api.rb in introspective_grape-0.3.2 vs spec/dummy/app/api/dummy_api.rb in introspective_grape-0.3.3
- old
+ new
@@ -13,12 +13,9 @@
before do
# sets server date in response header. This can be used on the client side
header "X-Server-Date", Time.now.to_i.to_s
header "Expires", 1.year.ago.httpdate
- # Convert incoming camel case params to snake case: grape will totally blow this
- # if the params hash is not a Hashie::Mash, so make it one of those:
- #@params = Hashie::Mash.new(params.with_snake_keys)
end
before_validation do
Rails.logger.info "With params: #{params.to_hash.inspect}"
end