Top Level Namespace
Defined Under Namespace
Modules: CustomAttributes
Instance Method Summary collapse
Instance Method Details
#get_customizable_class_or_fail(type) ⇒ Object
1 2 3 4 5 6 |
# File 'lib/custom_attributes/custom_attributes_api_helper.rb', line 1 def get_customizable_class_or_fail(type) model = type.camelize.constantize return nil unless model.method_defined? :custom_field_values model end |