Skip to content

Commit

Permalink
Merge pull request lynndylanhurley#651 from woodcrust/woodcrust
Browse files Browse the repository at this point in the history
fix method 'is_json_api' with active_model_serialier v 0.10.0
  • Loading branch information
booleanbetrayal committed Jun 2, 2016
2 parents b892e1b + 316cece commit bc04747
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/devise_token_auth/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def is_json_api
return false unless defined?(ActiveModel::Serializer)
return ActiveModel::Serializer.setup do |config|
config.adapter == :json_api
end
end if ActiveModel::Serializer.respond_to?(:setup)
return ActiveModelSerializers.config.adapter == :json_api
end

end
Expand Down

0 comments on commit bc04747

Please sign in to comment.