lib/has_meta.rb in has_meta-0.0.1 vs lib/has_meta.rb in has_meta-0.0.2
- old
+ new
@@ -1,7 +1,8 @@
-require "cgi"
-require "has_meta/version"
+require 'cgi'
+require 'active_record'
+require 'has_meta/version'
module HasMeta
module Extensions
def self.included(base)
base.extend(ClassMethods)
@@ -27,6 +28,6 @@
end
end
end
-ActiveModel::AttributeMethods.send :include, HasMeta::Extensions
+ActiveRecord::Base.send :include, HasMeta::Extensions