Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveModel::Serializer::Null with Hash #90

Open
benpixel opened this issue Aug 6, 2018 · 0 comments
Open

ActiveModel::Serializer::Null with Hash #90

benpixel opened this issue Aug 6, 2018 · 0 comments

Comments

@benpixel
Copy link

benpixel commented Aug 6, 2018

  RailsSettings::SettingObject Load (0.4ms)  SELECT "settings".* FROM "settings" WHERE "settings"."target_id" = $1 AND "settings"."target_type" = $2  [["target_id", 26], ["target_type", "Campaign"]]
  ↳ app/models/campaign.rb:120
[active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (1.61ms)
Completed 200 OK in 148ms (Views: 26.3ms | ActiveRecord: 22.3ms)

Doesn't matter if I try self.settings(:user_facing) or self.to_settings_hash[:user_facing] I'm still getting the same Null with hash thing. Any idea what might be the problem? Does it make sense that serializer is used even when not calling to_settings_hash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant