Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/ioki/model/platform/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class User < Base
attribute :created_at, on: :read, type: :date_time
attribute :updated_at, on: :read, type: :date_time
attribute :analytics_tracking, on: [:read, :create], type: :boolean
attribute :claimed, on: [:read, :create], type: :boolean
attribute :email,
type: :object,
on: [:read, :create, :update],
Expand Down
1 change: 1 addition & 0 deletions spec/ioki/model/platform/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
it { is_expected.to define_attribute(:created_at).as(:date_time) }
it { is_expected.to define_attribute(:updated_at).as(:date_time) }

it { is_expected.to define_attribute(:claimed).as(:boolean) }
it { is_expected.to define_attribute(:email).as(:object).with(class_name: 'UserEmail') }
it { is_expected.to define_attribute(:external_id).as(:string) }
it { is_expected.to define_attribute(:first_name).as(:string) }
Expand Down