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.1.53 lib/restpack-web/rails/controller.rb
restpack-web-0.1.52 lib/restpack-web/rails/controller.rb
restpack-web-0.1.51 lib/restpack-web/rails/controller.rb
restpack-web-0.1.50 lib/restpack-web/rails/controller.rb
restpack-web-0.1.48 lib/restpack-web/rails/controller.rb
restpack-web-0.1.47 lib/restpack-web/rails/controller.rb
restpack-web-0.1.46 lib/restpack-web/rails/controller.rb
restpack-web-0.1.45 lib/restpack-web/rails/controller.rb
restpack-web-0.1.44 lib/restpack-web/rails/controller.rb
restpack-web-0.1.43 lib/restpack-web/rails/controller.rb
restpack-web-0.1.42 lib/restpack-web/rails/controller.rb
restpack-web-0.1.40 lib/restpack-web/rails/controller.rb
restpack-web-0.1.39 lib/restpack-web/rails/controller.rb
restpack-web-0.1.38 lib/restpack-web/rails/controller.rb
restpack-web-0.1.37 lib/restpack-web/rails/controller.rb
restpack-web-0.1.36 lib/restpack-web/rails/controller.rb
restpack-web-0.1.35 lib/restpack-web/rails/controller.rb
restpack-web-0.1.34 lib/restpack-web/rails/controller.rb
restpack-web-0.1.33 lib/restpack-web/rails/controller.rb
restpack-web-0.1.32 lib/restpack-web/rails/controller.rb