Module: ArSync::StaticJsonConcern
- Defined in:
- lib/ar_sync/rails.rb
Instance Method Summary collapse
Instance Method Details
#ar_sync_static_json(record_or_records, query) ⇒ Object
15 16 17 18 19 20 |
# 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 |