Method: AppManager::Model#get_feature
- Defined in:
- lib/app_manager/model.rb
#get_feature(slug) ⇒ Object
55 56 57 58 59 60 61 62 63 64 |
# File 'lib/app_manager/model.rb', line 55 def get_feature(slug) plan_features = self.plan_features features = plan_features.select{|x| x['slug'].to_s == slug } if features.any? feature = features.first return casted_value(feature['value'],feature['value_type']) else nil end end |