Module: Bustle::Concern::ByPublisher::ClassMethods

Defined in:
lib/bustle/concerns/by_publisher.rb

Instance Method Summary collapse

Instance Method Details

#by(publisher, conditions = {}) ⇒ Object



6
7
8
# File 'lib/bustle/concerns/by_publisher.rb', line 6

def by(publisher, conditions = {})
  filter({ :publisher_id => publisher.id }.merge(conditions))
end