lib/property_sets.rb in property_sets-2.0.1 vs lib/property_sets.rb in property_sets-2.1.0
- old
+ new
@@ -1,15 +1,14 @@
require 'property_sets/property_set_model'
require 'property_sets/active_record_extension'
+require 'property_sets/version'
begin
require 'property_sets/action_view_extension'
rescue LoadError
end
module PropertySets
- VERSION = "0.7.2"
-
def self.ensure_property_set_class(association, owner_class)
const_name = "#{owner_class.name}#{association.to_s.singularize.capitalize}".to_sym
unless Object.const_defined?(const_name)
property_class = Object.const_set(const_name, Class.new(ActiveRecord::Base))
property_class.class_eval do