Skip to content

Commit

Permalink
Merge pull request #263 from reubenjs/entities-permissions-fix
Browse files Browse the repository at this point in the history
allow permissions partial to render for models with underscored names
  • Loading branch information
steveyken committed Jul 5, 2013
2 parents b61574d + 6f46743 commit 2cec06f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/entities/_permissions.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
- edit ||= false
- model = entity.class.name.downcase
-# model = entity.class.name.downcase
- model = entity.class.name.underscore # needed for models with underscored names
- collapsed = session[:entity_permissions].nil?
= subtitle :entity_permissions, collapsed, t(:permissions)
.section
Expand Down

0 comments on commit 2cec06f

Please sign in to comment.