kristianmandrup / roles_mongoid

Roles for mongoid using the Roles generic API from roles_generic
MIT License
29 stars 7 forks source link

Generator Issues #5

Closed mleung closed 13 years ago

mleung commented 13 years ago

Whenever I try to run a generator (rails g mongoid:roles User --strategy admin_flag) I get this error:

.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require': no such file to load -- migration_assist (LoadError)

Has anyone else seen this? Thanks!

kristianmandrup commented 13 years ago

migration_assist is a gem I made to help with migrations for Active Record. Mongoid roles should not have a dependency on this gem. I will look into it ASAP. Thanks.

mleung commented 13 years ago

Cool! Thanks so much.

kristianmandrup commented 13 years ago

Oh, I discovered that rails_artifactor still contains a few require 'migration_assist' statements. This is a "bug". In the _filename folder of that project, the statement in artifacts.rb file should be deleted and the migration.rb file should be moved to the _migrationassist project. A much better design I think.

For now just install migration_assist or add it in your Gemfile, then I will try to fix this ASAP. or try fix this yourself and send me a few pull requests. Thanks.

mleung commented 13 years ago

I threw migration_assist in my gemfile for now. No more error. Thanks!