Class: BadgesEngine::Badge
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BadgesEngine::Badge
- Defined in:
- app/models/badges_engine/badge.rb
Instance Method Summary collapse
Instance Method Details
#criteria ⇒ Object
18 19 20 |
# File 'app/models/badges_engine/badge.rb', line 18 def criteria read_attribute(:criteria).blank? ? badge_path(self) : read_attribute(:criteria) end |
#issuer ⇒ Object
14 15 16 |
# File 'app/models/badges_engine/badge.rb', line 14 def issuer BadgesEngine::Configuration.issuer end |