Module: AbAdmin::Models::Structure

Extended by:
ActiveSupport::Concern
Included in:
Structure
Defined in:
lib/ab_admin/models/structure.rb

Instance Method Summary collapse

Instance Method Details

#admin_titleObject


30
31
32
# File 'lib/ab_admin/models/structure.rb', line 30

def admin_title
  [title, structure_type.title, position_type.title, "#{self.class.han(:is_visible)}: #{is_visible ? '+' : '-'}"].join(' | ')
end

#redirect?Boolean


26
27
28
# File 'lib/ab_admin/models/structure.rb', line 26

def redirect?
  structure_type_id == StructureType.redirect.id
end