Module: Passbook
- Defined in:
- lib/passbook-rails.rb,
lib/passbook-rails/version.rb
Defined Under Namespace
Modules: Rails
Class Method Summary collapse
Class Method Details
.class_name_to_pass_type_id(class_name) ⇒ Object
23 24 25 26 27 |
# File 'lib/passbook-rails.rb', line 23 def self.class_name_to_pass_type_id class_name Passbook::Config.instance.pass_config.each do |pass_type_id, config| return pass_type_id if config['class']==class_name end end |
.pass_type_id_to_class(pass_type_id) ⇒ Object
19 20 21 |
# File 'lib/passbook-rails.rb', line 19 def self.pass_type_id_to_class pass_type_id Passbook::Config.instance.pass_config[pass_type_id]['class'].constantize end |