Module: Relay::Model

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



5
6
7
8
9
10
# File 'lib/relay/model.rb', line 5

def self.included(model)
  model.plugin :timestamps,
    create: :created_at,
    update: :updated_at,
    update_on_create: true
end