Class: LoyalPassport::Homework
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- LoyalPassport::Homework
- Defined in:
- app/models/loyal_passport/homework.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.authoritie_configs ⇒ Object
16 17 18 |
# File 'app/models/loyal_passport/homework.rb', line 16 def self. ::LoyalPassport.config. end |
Instance Method Details
#authoritie_job_config ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'app/models/loyal_passport/homework.rb', line 20 def @authoritie_job_config ||= ( config = ( ( self.class.[self.name] || {} )[:jobs] || {} )[self.job_name] case config when Hash config when String {:desc => config} end ) end |
#authoritie_job_config? ⇒ Boolean
37 38 39 |
# File 'app/models/loyal_passport/homework.rb', line 37 def self..is_a?(Hash) end |