lib/scrivito/membership.rb in scrivito_sdk-0.18.1 vs lib/scrivito/membership.rb in scrivito_sdk-0.30.0.rc1
- old
+ new
@@ -31,15 +31,7 @@
# falsy value. The unknown user will have the id of the original user and no abilities.
# @see Scrivito::Configuration.find_user
def user
User.find(user_id) || User.unknown_user(user_id)
end
-
- def as_json(options = nil)
- {
- user_id: user_id,
- role: role,
- description: user.description,
- }
- end
end
end