Class: WikiPage::Slug

Inherits:
ApplicationRecord show all
Defined in:
app/models/wiki_page/slug.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Class Method Details

.update_all(attrs = {}) ⇒ Object


22
23
24
# File 'app/models/wiki_page/slug.rb', line 22

def self.update_all(attrs = {})
  super(attrs.reverse_merge(updated_at: Time.current.utc))
end

Instance Method Details

#update_columns(attrs = {}) ⇒ Object


18
19
20
# File 'app/models/wiki_page/slug.rb', line 18

def update_columns(attrs = {})
  super(attrs.reverse_merge(updated_at: Time.current.utc))
end