Sha256: 90a725f48d90b2272d1a404112e1da3a8e76ae756506277b53f429104da33d9c

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

require_dependency "tramway/conference/application_controller"

class Tramway::Conference::Web::WelcomeController < ::Tramway::Conference::ApplicationController
  def index
    @unity = ::Tramway::Conference::Unity.includes(:social_networks).first
    @blocks = ::Tramway::Landing::Block.on_main_page
    @news = ::Tramway::News::News.active.first(3).map { |t| ::Tramway::Landing::Cards::NewsDecorator.new t }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-conference-1.1 app/controllers/tramway/conference/web/welcome_controller.rb
tramway-conference-1.0 app/controllers/tramway/conference/web/welcome_controller.rb
tramway-conference-0.1.0 app/controllers/tramway/conference/web/welcome_controller.rb