Class: Twinkle::Event

Inherits:
ApplicationRecord show all
Defined in:
app/models/twinkle/event.rb

Class Method Summary collapse

Class Method Details

.fieldsObject



12
13
14
# File 'app/models/twinkle/event.rb', line 12

def self.fields
  attribute_names.select{ |name| !['id', 'twinkle_app_id', 'created_at', 'updated_at'].include?(name) }
end