Added default account type of "Free" in config/applications.rb

This commit is contained in:
Lucy
2013-07-03 11:04:42 +01:00
parent 1b0a708b04
commit 650f24099d
2 changed files with 6 additions and 1 deletions

View File

@@ -9,7 +9,9 @@ class Account < ActiveRecord::Base
before_create do |account|
unless account.account_type
account.account_type = AccountType.find_or_create_by_name("Free")
account.account_type = AccountType.find_or_create_by_name(
Growstuff::Application.config.default_account_type
)
end
end

View File

@@ -37,6 +37,9 @@ module Growstuff
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
# Configure a default account type
config.default_account_type = "Free"
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]