Permalink
Browse files

Changed resource_link to use tableize.

  • Loading branch information...
1 parent 7ab3651 commit 8a2486115a94c61cd095820647efc002b275a0e3 @viking committed with graywh Jun 29, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 generators/unix_access_control/unix_access_control_generator.rb
@@ -193,7 +193,7 @@ def resource_link(resource)
h(resource)
when ActiveRecord::Base
link_to("\#{resource.send(UnixAccessControl.name_method_for(resource.class))} (\#{resource.class})",
- :controller => resource.class.to_s.downcase.pluralize, :action => 'show', :id => resource.id)
+ :controller => resource.class.to_s.tableize, :action => 'show', :id => resource.id)
else
resource
end

0 comments on commit 8a24861

Please sign in to comment.