Sha256: a3e874e4cf79b69feacb4ceb9bc6d1b9f029e6eb5f863e23bb8e83f5f86dee73

Contents?: true

Size: 833 Bytes

Versions: 3

Compression:

Stored size: 833 Bytes

Contents

require "roar/rails/version"
require "roar/representer"
require "roar/rails/railtie"

module Roar::Representer
  autoload("XML", "roar/representer/xml")
  autoload("JSON", "roar/representer/json")
  
  module JSON
    autoload("HAL", "roar/representer/json/hal")
  end
  
  
  module Feature
    autoload("Hypermedia", "roar/representer/feature/hypermedia")
  end
end



module Roar
  module Rails
    def self.rails3_0?
      ::Rails::VERSION::MINOR == 0
    end
    
    if rails3_0?
      require 'roar/rails/rails3_0_strategy'
    else
      require 'roar/rails/rails3_1_strategy'
    end
    
    autoload("TestCase", "roar/rails/test_case")
    autoload("ControllerAdditions", "roar/rails/controller_additions")
    autoload("Responder", "roar/rails/responder")
    autoload("ModelMethods", "roar/rails/responder")
  end
end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
roar-rails-0.0.12 lib/roar-rails.rb
roar-rails-0.0.11 lib/roar-rails.rb
roar-rails-0.0.10 lib/roar-rails.rb