fixing ability generator
This commit is contained in:
parent
6c1d685f2c
commit
0442634d5a
|
@ -5,7 +5,7 @@ module Cancan
|
||||||
|
|
||||||
def generate_ability
|
def generate_ability
|
||||||
copy_file "ability.rb", "app/models/ability.rb"
|
copy_file "ability.rb", "app/models/ability.rb"
|
||||||
if File.exist?(destination_path("spec"))
|
if File.exist?(File.join(destination_root, "spec"))
|
||||||
copy_file "ability_spec.rb", "spec/models/ability_spec.rb"
|
copy_file "ability_spec.rb", "spec/models/ability_spec.rb"
|
||||||
else
|
else
|
||||||
copy_file "ability_test.rb", "test/unit/ability_test.rb"
|
copy_file "ability_test.rb", "test/unit/ability_test.rb"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user