vendor/plugins/engines/lib/engines/plugin.rb
# Plugins can add code paths to this attribute in init.rb if they 
# need plugin directories to be added to the load path, i.e.
#
#   plugin.code_paths << 'app/other_classes'
#
# Defaults to ["app/controllers", "app/helpers", "app/models", "components"]
Plugins can add code paths to this attribute in init.rb if they
need plugin directories to be added to the load path, i.e.




Plugins can add code paths to this attribute in init . rb if they need plugin directories to be added to the load path i . e .
def add_plugin_view_paths
      view_path = File.join(directory, 'app', 'views')
      if File.exist?(view_path)
        ActionController::Base.view_paths.insert(1, view_path) 
      end
    end
def add_plugin_view_paths view_path = File . join ( directory , 'app' , 'views' ) if File . exist? ( view_path ) ActionController :: Base . view_paths . insert ( 1 , view_path ) end end
Plugins can add code paths to this attribute in init.rb if they
need plugin directories to be added to the load path, i.e.
Plugins can add code paths to this attribute in init . rb if they need plugin directories to be added to the load path i . e .
# push it just underneath the app