Sha256: 62f0c0cb8da6c312077731730357bd314f59f914fb17c22049da62ac558b282a

Contents?: true

Size: 633 Bytes

Versions: 1

Compression:

Stored size: 633 Bytes

Contents

# Copyright (c) 2008-12 Peter H. Boling of 9thBit LLC
# Released under the MIT license
# For Rails 3+
module DryViews
  class Railtie < ::Rails::Railtie

    config.before_configuration do
      if defined?(Rails)
        if ::Rails::VERSION::MAJOR == 3
          if ::Rails::VERSION::MINOR >= 2
            require 'dry_views/rails3_two'
          elsif
            require 'dry_views/rails3_zero'
          end
        elsif ::Rails::VERSION::MAJOR > 3
          # TODO: Check Rails 4 HEAD to see if the view flow is implemented the same way as 3.2
          require 'dry_views/rails3_two'
        end
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry_views-0.0.2 lib/dry_views/railtie.rb