Class: SecondBase::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- SecondBase::Railtie
- Defined in:
- lib/second_base/railtie.rb
Instance Method Summary collapse
- #config_key ⇒ Object
- #config_path ⇒ Object
- #fullpath(extra = nil) ⇒ Object
- #run_with_db_tasks? ⇒ Boolean
Instance Method Details
#config_key ⇒ Object
47 48 49 |
# File 'lib/second_base/railtie.rb', line 47 def config_key config.second_base.config_key end |
#config_path ⇒ Object
43 44 45 |
# File 'lib/second_base/railtie.rb', line 43 def config_path config.second_base.path end |
#fullpath(extra = nil) ⇒ Object
55 56 57 58 |
# File 'lib/second_base/railtie.rb', line 55 def fullpath(extra=nil) path = Rails.root.join(config.second_base.path) (extra ? path.join(path, extra) : path).to_s end |
#run_with_db_tasks? ⇒ Boolean
51 52 53 |
# File 'lib/second_base/railtie.rb', line 51 def run_with_db_tasks? config.second_base.run_with_db_tasks end |