Class: WelcomeController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- WelcomeController
- Defined in:
- app/controllers/welcome_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
caches_page_with_cache_marker, #raise_not_found!
Instance Method Details
#index ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/controllers/welcome_controller.rb', line 12 def index @composite = structure_by(slug: 'main-page-composite') # @lifetimes = TranslationCms::Api::Lifetime.all(_satellite_id: Settings.satellite_id).sort { |x, y| x.value <=> y.value } # @tickets = TranslationCms::Api::Ticket.all(_satellite_id: Settings.satellite_id) respond_with @structure end |
#robots ⇒ Object
8 9 10 |
# File 'app/controllers/welcome_controller.rb', line 8 def robots render text: Settings.robots_txt || 'Disallow: *' end |