Skip to content

Commit

Permalink
Merge pull request #55 from brianstien/remove_search_callbacks
Browse files Browse the repository at this point in the history
Remove search callbacks
  • Loading branch information
brianstien authored Feb 23, 2017
2 parents 88d5542 + 8ab0766 commit dfdb886
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/active_remote/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ module Search
included do
include Persistence
include RPC

define_model_callbacks :search
end

module ClassMethods
Expand Down Expand Up @@ -94,7 +92,6 @@ def search(args)

if response.respond_to?(:records)
records = serialize_records(response.records)
records.each { |record| record.run_callbacks :search }
end
end

Expand All @@ -114,15 +111,6 @@ def validate_search_args!(args)
end
end

# :noapi:
def _active_remote_search(args)
warn "DEPRECATED Model#_active_remote_search is depracted and will be remoted in Active Remote 3.0."

run_callbacks :search do
rpc.execute(:search, args)
end
end

# Reload this record from the remote service.
#
def reload
Expand Down

0 comments on commit dfdb886

Please sign in to comment.