Permalink
Browse files

Change the Way XmlActive Class Methods Are Imported

  • Loading branch information...
billy-ran-away committed Feb 12, 2012
1 parent a8bece6 commit 8d1bc71082cdc2a48d407cfe65727f164d724280
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/xml_active.rb
View
@@ -1,8 +1,9 @@
require "xml_active/version"
module XmlActive
- def self.included(base)
- base.extend ClassMethods
+ extend ActiveSupport::Concern
+
+ included do
end
def ensure_unique(name)
@@ -151,6 +152,4 @@ def xml_node_is_association(xml_node)
end
end
-class ActiveRecord::Base
- include XmlActive
-end
+ActiveRecord::Base.send :include, XmlActive::ClassMethods

0 comments on commit 8d1bc71

Please sign in to comment.