Skip to content

Commit

Permalink
Merge pull request discourse#280 from nverba/patch-1
Browse files Browse the repository at this point in the history
Quick fix for Boolean SiteSettings
  • Loading branch information
eviltrout committed Feb 27, 2013
2 parents cf867a3 + c6e5e3a commit 37175c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/site_setting_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def add_override!(name,val)
type = get_data_type(defaults[name])

if type == Types::Bool && val != true && val != false
val = (val == "t" || val == "true")
val = (val == "t" || val == "true") ? 't' : 'f'
end

if type == Types::Fixnum && !(Fixnum === val)
Expand Down

0 comments on commit 37175c2

Please sign in to comment.