Sha256: 6aee305a052df5f04c39bfad993e683bed064532b3f3cfdda0b644c6ebf8ac18

Contents?: true

Size: 1019 Bytes

Versions: 10

Compression:

Stored size: 1019 Bytes

Contents

module MnoEnterprise::Frontend::Concerns::Controllers::PagesController
  extend ActiveSupport::Concern

  #==================================================================
  # Included methods
  #==================================================================
  # 'included do' causes the included code to be evaluated in the
  # context where it is included rather than being executed in the module's context
  included do
    # including :launch from mnoe/api as before_filter with only redefine the filter
    before_filter :authenticate_user!, only: [:myspace, :launch]
    before_filter :redirect_to_lounge_if_unconfirmed, only: [:myspace, :launch]
  end

  #==================================================================
  # Instance methods
  #==================================================================
  # GET /myspace
  def myspace
    # Meta Information
    @meta[:title] = "Dashboard"
    @meta[:description] = "Dashboard"
    render layout: 'mno_enterprise/application_dashboard'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mno-enterprise-frontend-2.0.9 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb
mno-enterprise-frontend-2.0.8 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb
mno-enterprise-frontend-2.0.7 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb
mno-enterprise-frontend-2.0.6 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb
mno-enterprise-frontend-2.0.5 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb
mno-enterprise-frontend-2.0.4 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb
mno-enterprise-frontend-2.0.3 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb
mno-enterprise-frontend-2.0.2 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb
mno-enterprise-frontend-2.0.1 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb
mno-enterprise-frontend-2.0.0 lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb