lib/fflags/api.rb in fflags-0.4.1 vs lib/fflags/api.rb in fflags-0.4.2
- old
+ new
@@ -21,10 +21,10 @@
def get_flag(flag_name)
client.get(key, flag_name)
end
def toggle_flag(flag_name)
- set_flag(flag_name, !get_flag(flag_name))
+ set_flag(flag_name, !enabled?(flag_name))
end
def reset
client.reset(key)
load_flags