Class: BadgeGrouping
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BadgeGrouping
- Defined in:
- app/models/badge_grouping.rb
Constant Summary collapse
- GettingStarted =
1
- Community =
2
- Posting =
3
- TrustLevel =
4
- Other =
5
Instance Method Summary collapse
Instance Method Details
#default_position=(pos) ⇒ Object
19 20 21 |
# File 'app/models/badge_grouping.rb', line 19 def default_position=(pos) self.position ||= pos end |
#system? ⇒ Boolean
15 16 17 |
# File 'app/models/badge_grouping.rb', line 15 def system? id && id <= 5 end |