Class: JdbcGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- JdbcGenerator
- Defined in:
- lib/generators/jdbc/jdbc_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.desc(description = nil) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/generators/jdbc/jdbc_generator.rb', line 10 def self.desc(description=nil) return super if description "Description:\n" << " Creates stubs that ensure AR-JDBC is bootstrapped in your Rails application.\n" << " NOTE: you should not need this if you're on Rails >= 3.0 (using Bundler) ..." end |
.source_root ⇒ Object
2 3 4 |
# File 'lib/generators/jdbc/jdbc_generator.rb', line 2 def self.source_root @source_root ||= File.('../../../../rails_generators/templates', __FILE__) end |
Instance Method Details
#create_jdbc_files ⇒ Object
6 7 8 |
# File 'lib/generators/jdbc/jdbc_generator.rb', line 6 def create_jdbc_files directory '.', '.' end |