mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-03 14:38:41 -05:00
Added default account type of "Free" in config/applications.rb
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user