Sha256: adc81db95dc1af24031aa04a5a76854d22710a9c7d19a13b355353c787e32944
Contents?: true
Size: 781 Bytes
Versions: 3
Compression:
Stored size: 781 Bytes
Contents
require 'active_record' unless defined? ActiveRecord require_relative 'seek_party/models/sp_attribute' require_relative 'seek_party/models/sp_query' require_relative 'seek_party/seek_party_attribute' require_relative 'seek_party/seek_party_engine' require_relative 'seek_party/seek_party_query_builder' require_relative 'seek_party/version' module SeekParty DEFAULT_BLACK_LIST = %w[id created_at updated_at].freeze # Method below triggers all the magic def search(params: [], black_list: DEFAULT_BLACK_LIST, white_list: nil, scopes: []) SeekPartyEngine .new(self, params: params, white_list: white_list, black_list: black_list, scopes: scopes) .search end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
seek_party-0.0.9 | lib/seek_party.rb |
seek_party-0.0.8 | lib/seek_party.rb |
seek_party-0.0.7 | lib/seek_party.rb |