lib/ab_admin/models/structure.rb in ab_admin-0.1.2 vs lib/ab_admin/models/structure.rb in ab_admin-0.2.0
- old
+ new
@@ -19,8 +19,12 @@
scope :visible, where(:is_visible => true)
scope :with_kind, proc {|structure_type| where(:kind => structure_type.id) }
scope :with_position, proc {|position_type| where(:position => position_type.id).order('lft DESC') }
end
+ def redirect?
+ kind == StructureType.redirect.id
+ end
+
end
end
end