Module: TrackerApi::Resources::Shared::Base

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/tracker_api/resources/shared/base.rb', line 16

def self.included(base)
  base.class_eval do
    include Virtus.model(nullify_blank: true)
    include Virtus::DirtyAttribute
    include Virtus::DirtyAttribute::InitiallyClean

    include Equalizer.new(:id)

    attribute :id, Integer
  end
end