lib/active_remote/base.rb in active_remote-1.8.1 vs lib/active_remote/base.rb in active_remote-2.0.0.rc1

- old
+ new

@@ -1,5 +1,8 @@ +require 'active_model/callbacks' +require 'active_attr/model' + require 'active_remote/association' require 'active_remote/attributes' require 'active_remote/bulk' require 'active_remote/config' require 'active_remote/dirty' @@ -11,28 +14,28 @@ require 'active_remote/search' require 'active_remote/serialization' module ActiveRemote class Base - extend ::ActiveModel::Callbacks + extend ActiveModel::Callbacks - include ::ActiveAttr::Model + include ActiveAttr::Model - include ::ActiveRemote::Association - include ::ActiveRemote::Attributes - include ::ActiveRemote::Bulk - include ::ActiveRemote::DSL - include ::ActiveRemote::Integration - include ::ActiveRemote::Persistence - include ::ActiveRemote::Publication - include ::ActiveRemote::RPC - include ::ActiveRemote::Search - include ::ActiveRemote::Serialization + include Association + include Attributes + include Bulk + include DSL + include Integration + include Persistence + include Publication + include RPC + include Search + include Serialization # Overrides some methods, providing support for dirty tracking, # so it needs to be included last. - include ::ActiveRemote::Dirty + include Dirty attr_reader :last_request, :last_response define_model_callbacks :initialize, :only => :after @@ -54,7 +57,7 @@ def frozen? @attributes.frozen? end end - ::ActiveSupport.run_load_hooks(:active_remote, Base) + ActiveSupport.run_load_hooks(:active_remote, Base) end