app/models/tramway/event/partaking.rb in tramway-event-1.9.19.1 vs app/models/tramway/event/partaking.rb in tramway-event-1.9.19.2
- old
+ new
@@ -1,8 +1,10 @@
+# frozen_string_literal: true
+
class Tramway::Event::Partaking < ::Tramway::Core::ApplicationRecord
belongs_to :part, polymorphic: true
- enumerize :part_type, in: [ 'Tramway::Event::Event', 'Tramway::Event::Section' ]
+ enumerize :part_type, in: ['Tramway::Event::Event', 'Tramway::Event::Section']
belongs_to :person, class_name: 'Tramway::Event::Person'
- search_by :position, person: [:first_name, :last_name, :description]
+ search_by :position, person: %i[first_name last_name description]
end