Module: Trackman::Components::Conventions
- Included in:
- Assets::Asset
- Defined in:
- lib/trackman/components/conventions.rb
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#error_page ⇒ Object
15 16 17 |
# File 'lib/trackman/components/conventions.rb', line 15 def error_page Asset.create(:path => error_path, :virtual_path => error_path) end |
#error_path ⇒ Object
9 10 11 |
# File 'lib/trackman/components/conventions.rb', line 9 def error_path Pathname.new 'public/503-error.html' end |
#maintenance_page ⇒ Object
12 13 14 |
# File 'lib/trackman/components/conventions.rb', line 12 def maintenance_page Asset.create(:path => maintenance_path, :virtual_path => maintenance_path) end |
#maintenance_path ⇒ Object
6 7 8 |
# File 'lib/trackman/components/conventions.rb', line 6 def maintenance_path Pathname.new 'public/503.html' end |