Skip to content

Rails 5.1 compatibility, override default endpoints

Compare
Choose a tag to compare
@liveh2o liveh2o released this 30 Oct 17:49
· 65 commits to master since this release

Previously, the persistence and search modules used hard-coded values for RPC endpoints: :create, :delete, :destroy, :search, :update.

Add DSL methods so that these default values can be overridden:

class Developer < ActiveRemote::Base
  endpoint_for_create :register
  endpoint_for_destroy :delete
end

Also dial in Rails version since ActiveRemote is not yet compatible with Rails v5.2.