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

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

No files matched your search

+3 -1
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
+3
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]