Skip to content

Instantly share code, notes, and snippets.

@kiko
Created February 15, 2009 11:35
Show Gist options
  • Save kiko/64685 to your computer and use it in GitHub Desktop.
Save kiko/64685 to your computer and use it in GitHub Desktop.
--- a/lib/innate/helper/partial.rb
+++ b/lib/innate/helper/partial.rb
@@ -72,15 +72,15 @@ module Innate
ext = File.extname(path)
basename = File.basename(path, ext)
- ext = ext[1..-1]
-
+ ext = ext[1..-1] || action.node.provide[action.wish].to_s
+
action = Innate::Current.action.dup
action.layout = nil
action.view = action.node.find_view(basename, ext)
action.method = action.node.find_method(basename, action.params)
action.variables = action.variables.merge(variables)
action.sync_variables(action)
-
+
action.call
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment