Class: BadgesEngine::Badge

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/badges_engine/badge.rb

Instance Method Summary collapse

Instance Method Details

#criteriaObject



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

#issuerObject



14
15
16
# File 'app/models/badges_engine/badge.rb', line 14

def issuer
  BadgesEngine::Configuration.issuer
end