We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d9fd4e commit 56ae1fdCopy full SHA for 56ae1fd
README.md
@@ -12,7 +12,7 @@ require "scientist"
12
class MyWidget
13
def allows?(user)
14
experiment = Scientist::Default.new "widget-permissions"
15
- experiment.use { model.check_user?(user).valid? } # old way
+ experiment.use { model.check_user(user).valid? } # old way
16
experiment.try { user.can?(:read, model) } # new way
17
18
experiment.run
0 commit comments