Module: LiveRecord::PublicationsChannel::SearchAdapters::RansackAdapter
- Defined in:
- app/channels/live_record/publications_channel.rb
Class Method Summary collapse
Class Method Details
.mapped_active_record_relation(**args) ⇒ Object
86 87 88 89 90 91 92 |
# File 'app/channels/live_record/publications_channel.rb', line 86 def self.mapped_active_record_relation(**args) model_class = args.fetch(:model_class) conditions_hash = args.fetch(:conditions_hash) current_user = args.fetch(:current_user) model_class.ransack(conditions_hash, auth_object: current_user).result end |