Sha256: cacd68e1e5133f885f756f7eb9f435c0f1c08a2cb50bf51e49f463ea04364a5a

Contents?: true

Size: 540 Bytes

Versions: 18

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true

require "much-rails/mixin"
require "much-rails/change_action"

module MuchRails; end

module MuchRails::SaveAction
  include MuchRails::Mixin

  mixin_included do
    include MuchRails::ChangeAction
  end

  mixin_class_methods do
    def save_result(&block)
      change_result(&block)
    end
  end

  mixin_instance_methods do
    def save_result
      change_result
    end

    private

    def undefined_change_result_block_error_message
      "A `save_result` block must be defined."
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
much-rails-0.4.3 lib/much-rails/save_action.rb
much-rails-0.4.2 lib/much-rails/save_action.rb
much-rails-0.4.1 lib/much-rails/save_action.rb
much-rails-0.4.0 lib/much-rails/save_action.rb
much-rails-0.3.0 lib/much-rails/save_action.rb
much-rails-0.2.8 lib/much-rails/save_action.rb
much-rails-0.2.7 lib/much-rails/save_action.rb
much-rails-0.2.6 lib/much-rails/save_action.rb
much-rails-0.2.5 lib/much-rails/save_action.rb
much-rails-0.2.4 lib/much-rails/save_action.rb
much-rails-0.2.3 lib/much-rails/save_action.rb
much-rails-0.2.2 lib/much-rails/save_action.rb
much-rails-0.2.1 lib/much-rails/save_action.rb
much-rails-0.2.0 lib/much-rails/save_action.rb
much-rails-0.1.3 lib/much-rails/save_action.rb
much-rails-0.1.2 lib/much-rails/save_action.rb
much-rails-0.1.1 lib/much-rails/save_action.rb
much-rails-0.1.0 lib/much-rails/save_action.rb