FIX: Use `default_enabled` for badges (#212)
because `enabled` in Badge.seed will always overwrite changes by admins
This commit is contained in:
parent
882dd61e11
commit
8e8e773e65
|
@ -1,3 +1,4 @@
|
||||||
|
2.9.0.beta11: 882dd61e11f9bab8e99510296938b0cdbc3269c4
|
||||||
2.9.0.beta1: e6cce5486df906ede74aa1b17ab308a145a99b88
|
2.9.0.beta1: e6cce5486df906ede74aa1b17ab308a145a99b88
|
||||||
2.8.0.beta9: 4cf4b41c4e2c85b07da5d29353371a7593cac735
|
2.8.0.beta9: 4cf4b41c4e2c85b07da5d29353371a7593cac735
|
||||||
2.8.0.beta3: 13168027eb6f4cb2f9532fe9820b3f1284f37fcf
|
2.8.0.beta3: 13168027eb6f4cb2f9532fe9820b3f1284f37fcf
|
||||||
|
|
|
@ -23,7 +23,7 @@ Badge.seed(:name) do |badge|
|
||||||
badge.query = first_solution_query
|
badge.query = first_solution_query
|
||||||
badge.listable = true
|
badge.listable = true
|
||||||
badge.target_posts = true
|
badge.target_posts = true
|
||||||
badge.enabled = false
|
badge.default_enabled = false
|
||||||
badge.trigger = Badge::Trigger::PostRevision
|
badge.trigger = Badge::Trigger::PostRevision
|
||||||
badge.auto_revoke = true
|
badge.auto_revoke = true
|
||||||
badge.show_posts = true
|
badge.show_posts = true
|
||||||
|
@ -58,7 +58,7 @@ end
|
||||||
badge.listable = true
|
badge.listable = true
|
||||||
badge.default_allow_title = true
|
badge.default_allow_title = true
|
||||||
badge.target_posts = false
|
badge.target_posts = false
|
||||||
badge.enabled = false
|
badge.default_enabled = false
|
||||||
badge.trigger = Badge::Trigger::PostRevision
|
badge.trigger = Badge::Trigger::PostRevision
|
||||||
badge.auto_revoke = true
|
badge.auto_revoke = true
|
||||||
badge.show_posts = false
|
badge.show_posts = false
|
||||||
|
|
Loading…
Reference in New Issue