Module: Caseadilla::ConfigHelper

Included in:
CaseadillaController
Defined in:
lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb

Instance Method Summary collapse

Instance Method Details

#caseadilla_config_dashboard_urlObject

The initial page the user is shown after they sign in or click the logo. Probably this should be set to the first tab. Do not point this at caseadilla/index!


30
31
32
# File 'lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb', line 30

def caseadilla_config_dashboard_url
  url_for :controller => :caseadilla, :action => :blank
end

#caseadilla_config_email_from_addressObject

The sender address used for email notifications


24
25
26
# File 'lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb', line 24

def caseadilla_config_email_from_address
  '[email protected]'
end

#caseadilla_config_hostnameObject

The server hostname where Caseadilla will run


15
16
17
18
19
20
21
# File 'lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb', line 15

def caseadilla_config_hostname
  if Rails.env.production?
    'http://www.caseadillacms.com'
  else
    'http://0.0.0.0:3000'
  end
end

#caseadilla_config_javascript_includesObject

A list of JavaScript files to include. Do not remove the core caseadilla/caseadilla, but you can change the load order, if required.


40
41
42
# File 'lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb', line 40

def caseadilla_config_javascript_includes
  %w[caseadilla/caseadilla caseadilla/custom]
end

#caseadilla_config_logoObject

Filename of logo image. Ideally, it should be a transparent PNG around 140x30px


10
11
12
# File 'lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb', line 10

def 
  'caseadilla/caseadilla.png'
end

#caseadilla_config_stylesheet_includesObject

A list of stylesheets to include. Do not remove the core caseadilla/caseadilla, but you can change the load order, if required.


35
36
37
# File 'lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb', line 35

def caseadilla_config_stylesheet_includes
  %w[caseadilla/caseadilla caseadilla/custom]
end

#caseadilla_config_website_nameObject

Name of website or client — used throughout Caseadilla.


5
6
7
# File 'lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb', line 5

def caseadilla_config_website_name
  'Caseadilla'
end