Sha256: c5ca90b28f2ffba4a7884e1fff01811ff19b454ec5fa0e0d2f57412c0df02e1c

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

# Copyright (c) 2008-12 Peter H. Boling of 9thBit LLC
# Released under the MIT license
# For Rails 3+
module SanitizeEmail
  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.1 lib/dry_views/railtie.rb