Skip to content

Commit

Permalink
Adds protected_instance_variables to ActionController::API for compat…
Browse files Browse the repository at this point in the history
…ibitlity with some gems and Rails 4.1
  • Loading branch information
Edward Dowling committed Jul 8, 2014
1 parent dd6b71b commit 591fcfc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rails-api/action_controller/api.rb
Expand Up @@ -155,6 +155,10 @@ def self.without_modules(*modules)
include mod
end

def self.protected_instance_variables
Set.new
end

if Rails::VERSION::MAJOR >= 4
include StrongParameters
end
Expand Down

0 comments on commit 591fcfc

Please sign in to comment.