lib/scrivito/user.rb in scrivito_sdk-0.65.2 vs lib/scrivito/user.rb in scrivito_sdk-0.66.0.rc1
- old
+ new
@@ -50,11 +50,11 @@
# user.description('Bob Doe')
#
# user.can_never(:create, :workspace, 'You are not allowed to create workspaces.')
# user.can_always(:read, :workspace)
#
- # user.restrict_obj_publish(using: :_obj_class) do |obj_class|
- # if obj_class.name == 'BlogPost'
+ # user.restrict_obj_publish(using: :_obj_class_name) do |obj_class_name|
+ # if obj_class_name == 'BlogPost'
# false
# else
# 'You are not allowed to publish blog posts.'
# end
# end