mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Kill AMo Base
This commit is contained in:
parent
48bc39e03a
commit
6944b391cd
3 changed files with 5 additions and 11 deletions
|
@ -27,7 +27,6 @@ require 'active_support'
|
||||||
|
|
||||||
module ActiveModel
|
module ActiveModel
|
||||||
autoload :APICompliant, 'active_model/api_compliant'
|
autoload :APICompliant, 'active_model/api_compliant'
|
||||||
autoload :Base, 'active_model/base'
|
|
||||||
autoload :DeprecatedErrorMethods, 'active_model/deprecated_error_methods'
|
autoload :DeprecatedErrorMethods, 'active_model/deprecated_error_methods'
|
||||||
autoload :Errors, 'active_model/errors'
|
autoload :Errors, 'active_model/errors'
|
||||||
autoload :Name, 'active_model/naming'
|
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'
|
require 'cases/helper'
|
||||||
|
|
||||||
class ObservedModel < ActiveModel::Base
|
class ObservedModel
|
||||||
|
include ActiveModel::Observing
|
||||||
|
|
||||||
class Observer
|
class Observer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -17,7 +19,8 @@ class FooObserver < ActiveModel::Observer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Foo < ActiveModel::Base
|
class Foo
|
||||||
|
include ActiveModel::Observing
|
||||||
end
|
end
|
||||||
|
|
||||||
class ObservingTest < ActiveModel::TestCase
|
class ObservingTest < ActiveModel::TestCase
|
||||||
|
|
Loading…
Reference in a new issue