Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created March 1, 2018 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdan/5ef38bfa60bcd47b3495b8acb0967a5d to your computer and use it in GitHub Desktop.
Save bogdan/5ef38bfa60bcd47b3495b8acb0967a5d to your computer and use it in GitHub Desktop.
app/grids/people_grid.rb|102| scope.with_property_value(key.id, value, :cp_1)
app/grids/people_grid.rb|110| scope.with_property_value(key.id, value, :cp_2)
app/models/activity.rb|136| joins(offer: :person).merge(Person.with_property_value(key_id, value))
app/models/concerns/customizable_properties.rb|7| scope :with_property_value, ->(key_id, value, table_alias = :custom_properties) {
app/models/customer_email.rb|141| joins(offer: :person).merge(Person.with_property_value(key_id, value))
app/models/incentive_outcome.rb|99| joins(offer: :person).merge(Person.with_property_value(key_id, value))
app/models/offer.rb|120| joins(:person).merge(Person.with_property_value(key_id, value))
app/models/offer_share.rb|82| joins(:person).merge(Person.with_property_value(key_id, value))
app/models/referral.rb|248| joins(offer: :person).merge(Person.with_property_value(key_id, value))
app/models/visitor_offer.rb|133| joins(offer: :person).merge(Person.with_property_value(key_id, value))
support/2016/20160607175745_analyze_shares_metric.rb|50| joins(:person).merge(Person.with_property_value(key_id, value))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment