diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-06-08 20:52:27 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-06-08 20:52:27 -0500 |
commit | 27766ccf3b98216a4b1035281c6e0e31a790abe4 (patch) | |
tree | ec6abac1b779a5530bed38968ac9639e9f7d33a6 /activeresource/lib/active_resource/validations.rb | |
parent | 0b694a4ff41dbb7f64b6ea4cb088c2c2ba26b569 (diff) | |
download | rails-27766ccf3b98216a4b1035281c6e0e31a790abe4.tar.gz rails-27766ccf3b98216a4b1035281c6e0e31a790abe4.tar.bz2 rails-27766ccf3b98216a4b1035281c6e0e31a790abe4.zip |
Make use of AS::Concern in ActiveResource
Diffstat (limited to 'activeresource/lib/active_resource/validations.rb')
-rw-r--r-- | activeresource/lib/active_resource/validations.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activeresource/lib/active_resource/validations.rb b/activeresource/lib/active_resource/validations.rb index e029076079..a2ba224998 100644 --- a/activeresource/lib/active_resource/validations.rb +++ b/activeresource/lib/active_resource/validations.rb @@ -45,10 +45,10 @@ module ActiveResource # person.save # => true (and person is now saved to the remote service) # module Validations - def self.included(base) # :nodoc: - base.class_eval do - alias_method_chain :save, :validation - end + extend ActiveSupport::Concern + + included do + alias_method_chain :save, :validation end # Validate a resource and save (POST) it to the remote web service. |