This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Description
On page load after upgrading to overnight Gem 0.1.0
My store is:
class Discounter < Hyperloop::Store
state discount: 30, scope: :class, reader: true
state lucky_dip_taken: false, scope: :class, reader: true
def lucky_dip!
mutate.discount( state.discount + rand(-5..5) )
mutate.lucky_dip_taken true
end
end