lib/generators/canard/ability/ability_generator.rb in canard-0.2.2 vs lib/generators/canard/ability/ability_generator.rb in canard-0.2.3
- old
+ new
@@ -5,10 +5,10 @@
class AbilityGenerator < Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
argument :ability_definitions, :type => :array, :default => [], :banner => "can:[read,update]:[user,account] cannot:[create,destroy]:user"
def generate_ability
- template "abilities.rb.erb", Canard.abilities_path + "/#{file_name.pluralize}.rb"
+ template "abilities.rb.erb", Abilities.default_path + "/#{file_name.pluralize}.rb"
end
hook_for :test_framework, :as => 'ability'
private
\ No newline at end of file