app/models/tramway/landing/block.rb in tramway-landing-3.3.0.6 vs app/models/tramway/landing/block.rb in tramway-landing-3.3.0.7

- old
+ new

@@ -8,20 +8,24 @@ enumerize :navbar_link, in: %i[exist not_exist], default: :not_exist enumerize :link_object_type, in: ['Tramway::SportSchool::Document', 'Tramway::Page::Page'] uploader :background, :photo, extensions: %i[jpg jpeg gif png] - aasm :view_state do + aasm :view_state, column: :view_state do state :published, initial: true state :hidden event :publish do transitions from: :hidden, to: :published end event :hide do transitions from: :published, to: :hidden end + end + + aasm do + state :hack end store_accessor :button, :button_link store_accessor :button, :button_title