Sha256: c2bd7522e80da08237808be4a7407bd0f196b2fca88cd31e5092901a46b1b6c8

Contents?: true

Size: 827 Bytes

Versions: 1

Compression:

Stored size: 827 Bytes

Contents

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

module Roar
  autoload("XML", "roar/xml")
  autoload("JSON", "roar/json")

  module JSON
    autoload("HAL", "roar/rails/hal")
  end

  autoload("Hypermedia", "roar/hypermedia")
end


module Roar
  module Rails
    require 'uber/version'
    def self.rails_version
      Uber::Version.new(::ActionPack::VERSION::STRING)
    end

    if rails_version.~ 3.0
      require 'roar/rails/rails3_0_strategy'
    elsif rails_version.~ 3.1
      require 'roar/rails/rails3_1_strategy'
    elsif rails_version.~ 3.2
      require 'roar/rails/rails3_2_strategy'
    else
      require 'roar/rails/rails4_0_strategy'
    end

    autoload("TestCase", "roar/rails/test_case")
  end
end

require "roar/rails/controller_additions"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roar-rails-1.0.0 lib/roar-rails.rb