Skip to content

ActiveModel::Serializer::Null with Hash #90

@benpixel

Description

@benpixel
  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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions