Module: Wristband::UtilityMethods
- Defined in:
- lib/wristband.rb
Class Method Summary collapse
Class Method Details
.interpret_class_specification(model_class, with_class) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/wristband.rb', line 72 def self.interpret_class_specification(model_class, with_class) case (with_class) when Symbol "#{model_class.class_name}#{with_class.to_s.camelcase}".constantize when String with_class.constantize when true "#{model_class.name}AuthorityCheck".constantize else with_class end end |