lib/scaffolds/views/show.html.haml in effective_developer-0.1.1 vs lib/scaffolds/views/show.html.haml in effective_developer-0.2
- old
+ new
@@ -1,9 +1,9 @@
%h1= @page_title
-<% if (invoked_actions - crud_actions).present? -%>
+<% if non_crud_actions.present? -%>
%p.text-right
-<% (invoked_actions - crud_actions).each do |action| -%>
+<% non_crud_actions.each do |action| -%>
- if can?(:<%= action.to_s %>, @<%= resource.name %>)
= link_to '<%= action.titleize %>', <%= resource.action_path_helper(action, at: true) %>, class: 'btn btn-default',
data: { confirm: 'Really <%= action.to_s.titleize %>?' }
<% end -%>