Module: Motor::BuildSchema::Defaults
- Defined in:
- lib/motor/build_schema/defaults.rb
Class Method Summary collapse
-
.actions ⇒ Object
rubocop:disable Metrics/MethodLength.
-
.tabs ⇒ Object
rubocop:enable Metrics/MethodLength.
Class Method Details
.actions ⇒ Object
rubocop:disable Metrics/MethodLength
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/motor/build_schema/defaults.rb', line 9 def actions [ { name: 'create', display_name: I18n.t('motor.create'), action_type: BuildSchema::DEFAULT_TYPE, preferences: {}, visible: true }, { name: 'edit', display_name: I18n.t('motor.edit'), action_type: BuildSchema::DEFAULT_TYPE, preferences: {}, visible: true }, { name: 'remove', display_name: I18n.t('motor.remove'), action_type: BuildSchema::DEFAULT_TYPE, preferences: {}, visible: true } ].freeze end |
.tabs ⇒ Object
rubocop:enable Metrics/MethodLength
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/motor/build_schema/defaults.rb', line 36 def tabs [ { name: 'details', display_name: I18n.t('motor.details'), tab_type: BuildSchema::DEFAULT_TYPE, preferences: {}, visible: true } ].freeze end |