Skip to content

Commit

Permalink
Merge @url into :only_path => true for relative links by default when @…
Browse files Browse the repository at this point in the history
…url is a Hash.
  • Loading branch information
parndt committed Feb 18, 2012
1 parent f2d7b1e commit 7af7238
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/refinery/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def url
else
{ :controller => "refinery/admin/#{name}" }
end
@url.is_a?(Hash) ? {:only_path => true}.merge(@url) : @url
end

# Make this protected, so that only Plugin.register can use it.
Expand Down

0 comments on commit 7af7238

Please sign in to comment.