Permalink
Browse files

Kill AMo Base

  • Loading branch information...
1 parent 48bc39e commit 6944b391cddbf1a3ffb3ac4ac588fa4b3d50f430 @josh josh committed Jul 21, 2009
@@ -27,7 +27,6 @@
module ActiveModel
autoload :APICompliant, 'active_model/api_compliant'
- autoload :Base, 'active_model/base'
autoload :DeprecatedErrorMethods, 'active_model/deprecated_error_methods'
autoload :Errors, 'active_model/errors'
autoload :Name, 'active_model/naming'
@@ -1,8 +0,0 @@
-module ActiveModel
- class Base
- include Observing
- # disabled, until they're tested
- # include Callbacks
- # include Validations
- end
-end
@@ -1,6 +1,8 @@
require 'cases/helper'
-class ObservedModel < ActiveModel::Base
+class ObservedModel
+ include ActiveModel::Observing
+
class Observer
end
end
@@ -17,7 +19,8 @@ def on_spec(record)
end
end
-class Foo < ActiveModel::Base
+class Foo
+ include ActiveModel::Observing
end
class ObservingTest < ActiveModel::TestCase

0 comments on commit 6944b39

Please sign in to comment.