lib/generators/effective/ability_generator.rb in effective_developer-0.1.1 vs lib/generators/effective/ability_generator.rb in effective_developer-0.2
- old
+ new
@@ -56,11 +56,11 @@
if (crud_actions - invoked_actions).present?
abilities += (crud_actions & invoked_actions)
end
- if (invoked_actions - crud_actions).present?
- abilities += (invoked_actions - crud_actions)
+ if non_crud_actions.present?
+ abilities += non_crud_actions
end
abilities = ['manage'] if abilities.blank? || abilities == (crud_actions - ['show'])
if abilities.length == 1