Sha256: 01af8e0bd014c7a560f9ab8fc6bc3056fcd1c3b2f4befda8d9da5455dfcefe42

Contents?: true

Size: 664 Bytes

Versions: 3

Compression:

Stored size: 664 Bytes

Contents

require 'respondie'
require 'restfulie/common'

module Restfulie
  module Server
    autoload :Configuration, 'restfulie/server/configuration'
    autoload :ActionController, 'restfulie/server/action_controller'
    autoload :Controller, 'restfulie/server/controller'
  end
end

require 'restfulie/server/tokamak'
require 'restfulie/server/core_ext'

if defined? ::ActionController
  class ActionController::Base
    def self.restfulie
      include Restfulie::Server::ActionController::Base
    end
  
    def self.use_trait(&block)
      Respondie::Builder.new("Restfulie::Server::ActionController::Trait::$trait$", self).instance_eval(&block)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
restfulie-1.0.0 lib/restfulie/server.rb
restfulie-1.0.0.beta5 lib/restfulie/server.rb
restfulie-1.0.0.beta4 lib/restfulie/server.rb