Sha256: 8e2e25238c0f32e6b552fbd3b3644612085ac0e0f98f978acf43bfb8dd5d3a0f

Contents?: true

Size: 716 Bytes

Versions: 1

Compression:

Stored size: 716 Bytes

Contents

require 'aldous/view_builder'
require 'aldous/logging_wrapper'

module Aldous
  module Controller
    module Action
      class ResultExecutionService
        class << self
          def perform(controller, respondable, default_view_data)
            self.new(controller, respondable, default_view_data).perform
          end
        end

        attr_reader :controller, :respondable, :default_view_data

        def initialize(controller, respondable, default_view_data)
          @controller = controller
          @respondable = respondable
          @default_view_data = default_view_data
        end

        def perform
          respondable.action(controller).execute
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aldous-1.1.2 lib/aldous/controller/action/result_execution_service.rb