Module: Wristband::UtilityMethods
- Defined in:
- lib/wristband.rb
Class Method Summary collapse
Class Method Details
.interpret_class_specification(model_class, with_class) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/wristband.rb', line 68 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 |