Skip to content
This repository
Browse code

fixing ability generator

  • Loading branch information...
commit 0442634d5aadc2b83cd432eba6e6ce25438b0cbd 1 parent 6c1d685
Ryan Bates authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/generators/cancan/ability/ability_generator.rb
2  lib/generators/cancan/ability/ability_generator.rb
@@ -5,7 +5,7 @@ class AbilityGenerator < Rails::Generators::Base
5 5
6 6 def generate_ability
7 7 copy_file "ability.rb", "app/models/ability.rb"
8   - if File.exist?(destination_path("spec"))
  8 + if File.exist?(File.join(destination_root, "spec"))
9 9 copy_file "ability_spec.rb", "spec/models/ability_spec.rb"
10 10 else
11 11 copy_file "ability_test.rb", "test/unit/ability_test.rb"

0 comments on commit 0442634

Please sign in to comment.
Something went wrong with that request. Please try again.