Module: JsonApiClient::Helpers::Callbacks

Extended by:
ActiveSupport::Concern
Defined in:
lib/json_api_client/helpers/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



19
20
21
22
23
# File 'lib/json_api_client/helpers/callbacks.rb', line 19

def destroy
  run_callbacks :destroy do
    super
  end
end

#saveObject



11
12
13
14
15
16
17
# File 'lib/json_api_client/helpers/callbacks.rb', line 11

def save
  run_callbacks :save do
    run_callbacks (persisted? ? :update : :create) do
      super
    end
  end
end