Sha256: 435b4542a83d8ff75b0cfdc75a01fc7856e611c4378d0b079f7d61773926ae21

Contents?: true

Size: 300 Bytes

Versions: 11

Compression:

Stored size: 300 Bytes

Contents

module RestPack
  module Web
    module Rails
      module Controller
        def self.included(base)
          base.send(:before_filter, :include_restpack)
        end

        def include_restpack
          @restpack = RestPack::Web::Context.new(request.env)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
restpack-web-0.2.26 lib/restpack-web/rails/controller.rb
restpack-web-0.2.25 lib/restpack-web/rails/controller.rb
restpack-web-0.2.24 lib/restpack-web/rails/controller.rb
restpack-web-0.2.23 lib/restpack-web/rails/controller.rb
restpack-web-0.2.22 lib/restpack-web/rails/controller.rb
restpack-web-0.2.21 lib/restpack-web/rails/controller.rb
restpack-web-0.2.20 lib/restpack-web/rails/controller.rb
restpack-web-0.2.19 lib/restpack-web/rails/controller.rb
restpack-web-0.2.18 lib/restpack-web/rails/controller.rb
restpack-web-0.2.17 lib/restpack-web/rails/controller.rb
restpack-web-0.2.16 lib/restpack-web/rails/controller.rb