Module: Rails3::Assist::Directory::Root::Methods
- Defined in:
- lib/rails3_assist/directory/root.rb
Instance Method Summary collapse
Instance Method Details
#root_dir(options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rails3_assist/directory/root.rb', line 8 def root_dir ={} raise ArgumentError, "options argument to root_dir must be a hash, was: #{.inspect}" if && !.kind_of?(Hash) dir = [:root_path] if dir ||= Rails3::Assist::Directory.rails_root || Rails.root raise "You must set the Rails app root dir: Rails::Assist::App.root_dir = '/my/root/dir'" if !dir dir end |
#root_directories ⇒ Object
4 5 6 |
# File 'lib/rails3_assist/directory/root.rb', line 4 def root_directories [:app, :config, :db, :public, :lib, :log, :doc, :test, :spec] end |