Vladimir Lyzo
Vladimir Lyzo
PR allows make entity partials in grape-entity. :+1: Example: ``` ruby class DuckOptionsEntity < Grape::Entity expose :duck_specific_attribute end class DogOptionsEntity < Grape::Entity expose :dog_specific_attribute end class AnimalEntity < Grape::Entity expose...
@Rotimi, IMO the best way of gem usage for api following: 1. `protect_from_forgery with: :null_session` - It isn't a disabling of CSRF protection, it's another method of protection: `:null_session` -...
IMO this documentation(Rails request forgery protection documentation) is obsolete. Because without `verify_authenticity_token` call `protect_from_forgery with: :null_session` do nothing.
I made PR to rails(rails/rails#15608) about this obsolete documentation. Let's look what will say rails maintainers. My quote from this PR, why `skip_before_action :verify_authenticity_token` should be deleted: > :null_session was...
> This way rails will destroy a session without a csrf token without raising an exception. In this way rails works if you use `protect_from_forgery with: :reset_session`. As i mentioned...
+1 to enable overriding of any field (not only date)?
:+1: I moved all paperclip code to `paperclip.rb`(https://github.com/kreativgebiet/rich/pull/183) and it works fine with paperclip and carrierwave
PR #15 with corrections