lib/property_sets.rb in property_sets-2.8.0 vs lib/property_sets.rb in property_sets-2.9.0
- old
+ new
@@ -7,10 +7,10 @@
rescue LoadError
end
module PropertySets
def self.ensure_property_set_class(association, owner_class_name)
- const_name = "#{owner_class_name}#{association.to_s.singularize.capitalize}".to_sym
+ const_name = "#{owner_class_name}#{association.to_s.singularize.camelcase}".to_sym
unless Object.const_defined?(const_name)
property_class = Object.const_set(const_name, Class.new(ActiveRecord::Base))
property_class.class_eval do
include PropertySets::PropertySetModel::InstanceMethods
extend PropertySets::PropertySetModel::ClassMethods