Skip to content

Commit

Permalink
Fix formatting in the generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jul 17, 2015
1 parent b4de3c1 commit 0428d95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def inject_curation_concerns_user_behavior
file_path = "app/models/#{model_name.underscore}.rb"
if File.exists?(file_path)
inject_into_file file_path, after: /include Hydra\:\:User.*$/ do
"# Connects this user object to Curation Concerns behaviors. " +
"\n include CurationConcerns::User\n"
"\n # Connects this user object to Curation Concerns behaviors." +
"\n include CurationConcerns::User\n"
end
else
puts " \e[31mFailure\e[0m CurationConcerns requires a user object. This generators assumes that the model is defined in the file #{file_path}, which does not exist. If you used a different name, please re-run the generator and provide that name as an argument. Such as \b rails -g curation_concerns client"
Expand Down

0 comments on commit 0428d95

Please sign in to comment.