module ArSync::StaticJsonConcern
Public Instance Methods
ar_sync_static_json(record_or_records, query)
click to toggle source
# File lib/ar_sync/rails.rb, line 15 def ar_sync_static_json(record_or_records, query) if respond_to?(ArSync.config.current_user_method) current_user = send ArSync.config.current_user_method end ArSync.serialize(record_or_records, query.as_json, user: current_user) end