lib/generators/effective/ability_generator.rb in effective_developer-0.2.2 vs lib/generators/effective/ability_generator.rb in effective_developer-0.2.3

- old
+ new

@@ -19,11 +19,10 @@ say_status :invoke, :ability, :white end def create_ability unless File.exists?('app/models/ability.rb') - say_status :skipped, :ability, :yellow - return + say_status(:skipped, :ability, :yellow) and return end Effective::CodeWriter.new('app/models/ability.rb') do |w| if resource.namespaces.blank? if w.find { |line, depth| depth == 2 && line == ability }