Fix sidebar registration

This commit is contained in:
manson 2014-05-14 15:45:23 +08:00
parent f168ce7516
commit 823231132c
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module ContextLinkRenderer
@request = request @request = request
@params = params @params = params
@current_user = current_user @current_user = current_user
content_tag :li, link_to(content_tag(:span, I18n.t(@label_i18n)), Rails.application.routes.url_helpers.send(@path, @arg)), :class => ( active_actions[controller] == action ? 'active' : nil) content_tag :li, link_to(content_tag(:span, I18n.t(@label_i18n)), Rails.application.routes.url_helpers.send(@path, eval(@arg))), :class => ( active_actions[controller] == action ? 'active' : nil)
end end
end end