Sha256: fe6145de09771c46e49ad05d1e0f257bb7c98191de934ca9626fd8d7872fbc1a

Contents?: true

Size: 831 Bytes

Versions: 9

Compression:

Stored size: 831 Bytes

Contents

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

  config.host = {
    'test' => 'www.example.com',
    'development' => 'localhost',
    '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

9 entries across 9 versions & 1 rubygems

Version Path
workarea-core-3.4.45 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.44 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.43 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.42 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.41 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.40 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.39 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.5.17 lib/generators/workarea/install/templates/initializer.rb.erb
workarea-core-3.4.38 lib/generators/workarea/install/templates/initializer.rb.erb