Sha256: 5089c3345c9b4ebb8709e95c75737869a1c9db38404ce20ef32923613393c420
Contents?: true
Size: 292 Bytes
Versions: 1
Compression:
Stored size: 292 Bytes
Contents
module Scrivito class PublishAbility < Struct.new(:scrivito_user, :obj_id) def as_json {restriction_messages: restriction_messages} end private def restriction_messages obj = Obj.find(obj_id) scrivito_user.restriction_messages_for(obj) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scrivito_sdk-1.6.0.rc1 | lib/scrivito/publish_ability.rb |