1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

fixed User.to_json

This commit is contained in:
Sylvain 2018-07-24 11:19:30 +02:00
parent 9af1e5c658
commit afc6ef40d2

View File

@ -74,7 +74,7 @@ class User < ActiveRecord::Base
scope :without_subscription, -> { includes(:subscriptions).where(subscriptions: { user_id: nil }) }
scope :with_subscription, -> { joins(:subscriptions) }
def to_json(options)
def to_json(options = {})
ApplicationController.new.view_context.render(
partial: 'api/members/member',
locals: { :member => self },