Skip to content
Browse files

Make AR generators discoverable again.

  • Loading branch information...
1 parent e626432 commit 388568893f1cbe395a6e71caf5d8e996b131eee4 @michaelklishin michaelklishin committed with mattetti Oct 11, 2008
Showing with 5 additions and 1 deletion.
  1. +4 −0 merb_activerecord/Generators
  2. +1 −1 merb_activerecord/Rakefile
View
4 merb_activerecord/Generators
@@ -0,0 +1,4 @@
+scope 'merb-gen' do
+ dir = File.join(File.dirname(__FILE__), 'lib', 'generators/')
+ Merb.add_generators dir + 'migration', dir + 'model', dir + 'resource_controller', dir + 'session_migration'
+end
View
2 merb_activerecord/Rakefile
@@ -37,7 +37,7 @@ spec = Gem::Specification.new do |s|
s.homepage = PROJECT_URL
s.add_dependency('merb-core', '>= 0.9.9')
s.require_path = 'lib'
- s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib}/**/*")
+ s.files = %w(LICENSE README Rakefile TODO Generators) + Dir.glob("{lib}/**/*")
end
Rake::GemPackageTask.new(spec) do |pkg|

0 comments on commit 3885688

Please sign in to comment.
Something went wrong with that request. Please try again.