Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/application_controller.rb

Overview

This class is Application Controller and his methods is available for all controllers

Instance Method Summary collapse

Instance Method Details

#homeObject



11
12
13
# File 'app/controllers/application_controller.rb', line 11

def home
  @contracts = contracts
end

#mining_profileObject



15
16
17
18
19
20
# File 'app/controllers/application_controller.rb', line 15

def mining_profile
  @words = current_user.acceptable_words
  @numbers = current_user.acceptable_number_sequences
  @symbols = current_user.acceptable_symbol_sequences
  @ticket = current_user.tickets.where(status: :active).last
end

#privacy_policyObject



25
# File 'app/controllers/application_controller.rb', line 25

def privacy_policy; end

#termsObject



22
# File 'app/controllers/application_controller.rb', line 22

def terms; end