Class: Banis::ModDev::AR::Config
- Inherits:
-
Object
- Object
- Banis::ModDev::AR::Config
- Defined in:
- lib/banis/mod_dev/ar/config.rb
Instance Method Summary collapse
-
#config_root ⇒ Object
where to read/write the database.yaml.
-
#db_root ⇒ Object
where to write the sqlite output?.
-
#env ⇒ Object
which env to use?.
-
#migration_root ⇒ Object
where to write/read the migration file.
-
#model_root ⇒ Object
where to put the generated model class.
Instance Method Details
#config_root ⇒ Object
where to read/write the database.yaml
18 19 20 |
# File 'lib/banis/mod_dev/ar/config.rb', line 18 def config_root File.join(db_root,"config") end |
#db_root ⇒ Object
where to write the sqlite output?
13 14 15 |
# File 'lib/banis/mod_dev/ar/config.rb', line 13 def db_root File.join(File.dirname(__FILE__),"..","..","..","..","db") end |
#env ⇒ Object
which env to use?
8 9 10 |
# File 'lib/banis/mod_dev/ar/config.rb', line 8 def env "development" end |
#migration_root ⇒ Object
where to write/read the migration file
23 24 25 |
# File 'lib/banis/mod_dev/ar/config.rb', line 23 def migration_root File.join(db_root,"migrate") end |
#model_root ⇒ Object
where to put the generated model class
28 29 30 |
# File 'lib/banis/mod_dev/ar/config.rb', line 28 def model_root File.join(db_root,"model") end |