Sha256: fe355eed3160da98734511306677a4082653fdec6c268fa2b7997d07e26b920d

Contents?: true

Size: 302 Bytes

Versions: 41

Compression:

Stored size: 302 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

41 entries across 41 versions & 2 rubygems

Version Path
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.15 lib/restpack-web/rails/controller.rb
restpack-web-0.2.14 lib/restpack-web/rails/controller.rb
restpack-web-0.2.13 lib/restpack-web/rails/controller.rb
restpack-web-0.2.12 lib/restpack-web/rails/controller.rb
restpack-web-0.2.11 lib/restpack-web/rails/controller.rb
restpack-web-0.2.10 lib/restpack-web/rails/controller.rb
restpack-web-0.2.9 lib/restpack-web/rails/controller.rb
restpack-web-0.2.8 lib/restpack-web/rails/controller.rb
restpack-web-0.2.7 lib/restpack-web/rails/controller.rb
restpack-web-0.2.6 lib/restpack-web/rails/controller.rb
restpack-web-0.2.5 lib/restpack-web/rails/controller.rb
restpack-web-0.2.4 lib/restpack-web/rails/controller.rb
restpack-web-0.2.3 lib/restpack-web/rails/controller.rb
restpack-web-0.2.2 lib/restpack-web/rails/controller.rb
restpack-web-0.2.1 lib/restpack-web/rails/controller.rb