Sha256: 34f151181f8a919cbb44a5c3f97522b7120008c831f9792fbe57e3fe9e1cb72a

Contents?: true

Size: 836 Bytes

Versions: 44

Compression:

Stored size: 836 Bytes

Contents

Workarea.configure do |config|
  # Basic site info
  config.site_name = '<%= app_name.titleize %>'

  config.host = {
    'test' => 'www.example.com',
    'development' => 'localhost:3000',
    'production' => 'www.<%= app_name.dasherize %>.com' # TODO
  }[Rails.env]

  config.email_to = {
    'test'        => "#{config.site_name} <customerservice@example.com>",
    'development' => "#{config.site_name} <customerservice@<%= app_name %>.test>",
    'production'  => "#{config.site_name} <customerservice@<%= app_name.dasherize %>.com>" # TODO
  }[Rails.env]

  config.email_from =  {
    'test'        => "#{config.site_name} <noreply@example.com>",
    'development' => "#{config.site_name} <noreply@<%= app_name %>.test",
    'production'  => "#{config.site_name} <noreply@<%= app_name.dasherize %>.com>" # TODO
  }[Rails.env]
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
workarea-core-3.5.16 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.37 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.15 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.36 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.14 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.35 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.13 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.34 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.12 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.33 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.11 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.10 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.32 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.9 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.31 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.8 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.30 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.7 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.29 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.6 lib/generators/workarea/install/templates/initializer.rb.erb