Skip to content

Commit

Permalink
Merge pull request #648 from bvandgrift/master
Browse files Browse the repository at this point in the history
updates config wrapper to conform with newer idiom
  • Loading branch information
booleanbetrayal committed May 30, 2016
2 parents 1d6dbdc + 7b97279 commit a1e5143
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/devise_token_auth/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def resource_class(m=nil)

def is_json_api
return false unless defined?(ActiveModel::Serializer)
return ActiveModel::Serializer.config.adapter == :json_api
return ActiveModel::Serializer.setup do |config|
config.adapter == :json_api
end
end

end
Expand Down

0 comments on commit a1e5143

Please sign in to comment.