Module: Hypertemplate::Hook::Rails::Rails3Adapter

Defined in:
lib/hypertemplate/hook/rails.rb

Instance Method Summary collapse

Instance Method Details

#_pick_partial_template(path) ⇒ Object

:nodoc:



47
48
49
50
51
52
53
54
55
56
# File 'lib/hypertemplate/hook/rails.rb', line 47

def _pick_partial_template(path) #:nodoc:
  return path unless path.is_a?(String)
  prefix = controller_path unless path.include?(?/)
  find_template(path, prefix, true).instance_eval do
    unless respond_to?(:path)
      def path; virtual_path end
    end
    self
  end
end