Sha256: 2da98ba9d5db0589c2493291b148bf3a84e07adc974e272eb79bb57eda8cb47c

Contents?: true

Size: 152 Bytes

Versions: 28

Compression:

Stored size: 152 Bytes

Contents

def get_customizable_class_or_fail(type)
  model = type.camelize.constantize

  return nil unless model.method_defined? :custom_field_values
  model
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
create_custom_attributes-0.6.3 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.6.2 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.6.1 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.25 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.24 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.23 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.22 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.21 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.20 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.19 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.18 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.17 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.16 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.15 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.14 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.13 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.12 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.11 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.10 lib/custom_attributes/custom_attributes_api_helper.rb
create_custom_attributes-0.5.9 lib/custom_attributes/custom_attributes_api_helper.rb