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:
parent
9af1e5c658
commit
afc6ef40d2
@ -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 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user