Class: WelcomeController

Inherits:
ApplicationController show all
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

#indexObject



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

#robotsObject



8
9
10
# File 'app/controllers/welcome_controller.rb', line 8

def robots
  render text: Settings.robots_txt || 'Disallow: *'
end