Sha256: baaab45e2510a0c3b09d8590f33e44182ac2a921c0a060f68198b78820925050

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

module Happy
  class Controller
    module Rackable
      extend ActiveSupport::Concern

      def call(env)
        @env = env

        catch :done do
          serve_or_404! perform
        end

        response
      end

      module ClassMethods
        def call(env)
          new.call(env)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
happy-0.1.0.pre16 lib/happy/controller/rackable.rb
happy-0.1.0.pre15 lib/happy/controller/rackable.rb
happy-0.1.0.pre14 lib/happy/controller/rackable.rb
happy-0.1.0.pre13 lib/happy/controller/rackable.rb
happy-0.1.0.pre12 lib/happy/controller/rackable.rb