Sha256: d9405d4d218a213fed2481e6bbddf5a34f57960423d42287ca97e149f2e12ad2

Contents?: true

Size: 463 Bytes

Versions: 5

Compression:

Stored size: 463 Bytes

Contents

module ActionView #:nodoc:
  class TemplateFinder #:nodoc:
    def initialize_with_desert_plugins(*args)
      begin
        initialize_without_desert_plugins *args
      rescue ActionView::TemplateFinder::InvalidViewPath
        # Desert will add the missing paths next
      end
      Desert::Manager.plugins.reverse.each do |plugin|
        append_view_path plugin.templates_path
      end
    end
    alias_method_chain :initialize, :desert_plugins
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

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