Sha256: 31a644935edbda144c25acb742fec856b05c9372be4f821b9ff321e707b315a2

Contents?: true

Size: 534 Bytes

Versions: 8

Compression:

Stored size: 534 Bytes

Contents

dir = File.dirname(__FILE__)

if ActionView.const_defined?(:TemplateFinder)
  require "#{dir}/2.1.0/action_view"
else
  if ActionView::Base.private_instance_methods.include?('find_template_extension_from_handler')
    if ActionView::Base.instance_methods.include?('template_handler_preferences')
      require "#{dir}/1.99.0/action_view"
    else
      require "#{dir}/2.0.2/action_view"
    end
  elsif ActionView.const_defined?(:PathSet)
    require "#{dir}/2.2.0/action_view"
  else
    require "#{dir}/1.2.0/action_view"
  end
end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
cauta-desert-0.5.1 lib/desert/plugin_templates/action_view.rb
cauta-desert-0.5.2 lib/desert/plugin_templates/action_view.rb
cauta-desert-0.5.3 lib/desert/plugin_templates/action_view.rb
natlownes-desert-0.5.2 lib/desert/plugin_templates/action_view.rb
desert-0.5.4 lib/desert/plugin_templates/action_view.rb
bborn-desert-0.5.3 lib/desert/plugin_templates/action_view.rb
desert-0.5.3 lib/desert/plugin_templates/action_view.rb
desert-0.5.2 lib/desert/plugin_templates/action_view.rb