Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing notes in README; newline before User model injection; require bootstrap_forms #1

Merged
merged 1 commit into from
May 17, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ Installing:
* ```rails generate roles```
* ```rake db:migrate```

Testing:

* Install a system javascript runtime or uncomment therubyracer in spec/support/Gemfile
* Run ```rake generate spec``` to generate a test rails app at spec/internal and test it
2 changes: 1 addition & 1 deletion lib/generators/roles/roles_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def copy_migrations
def inject_user_roles_behavior
file_path = "app/models/#{model_name.underscore}.rb"
if File.exists?(file_path)
code = "# Connects this user object to Role-management behaviors. " +
code = "\n # Connects this user object to Role-management behaviors. " +
"\n include Hydra::RoleManagement::UserRoles\n"
inject_into_file file_path, code, { :after => /include Hydra::User/ }
else
Expand Down
3 changes: 1 addition & 2 deletions lib/hydra-role-management.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#require "bundler/setup"
require "hydra/role_management"
#require "blacklight"
require 'bootstrap_forms'