app/views/tramway/admin/shared/show/_attribute_tr.html.haml in tramway-admin-1.32.2.5 vs app/views/tramway/admin/shared/show/_attribute_tr.html.haml in tramway-admin-1.33

- old
+ new

@@ -2,7 +2,8 @@ %td = model_class.human_attribute_name attribute_name %td = value %td - - if attribute_name.to_s != 'state' && object.model.class.state_machines.keys.include?(attribute_name.to_sym) - = state_events_buttons object, state_method: attribute_name, model_param_name: :record, controller: 'tramway/admin/records', action: :update, parameters: { model: object.class.model_name }, button_options: { class: :smart_button } + - if tramway_model?(model_class) + - if attribute_name.to_s != 'state' && object.model.class.state_machines.keys.include?(attribute_name.to_sym) + = state_events_buttons object, state_method: attribute_name, model_param_name: :record, controller: 'tramway/admin/records', action: :update, parameters: { model: object.class.model_name }, button_options: { class: :smart_button }