Skip to content

Instantly share code, notes, and snippets.

View gabeodess's full-sized avatar

Gabe Odess gabeodess

  • RigUp
  • Austin TX
View GitHub Profile
find: https://order.dominos.com/power/store-locator?s=${line1}&c=${line2}&type=${type}
method: GET
s: Street Address
c: City, State and/or Postal Code
type: Delivery or Carryout
store info: https://order.dominos.com/power/store/${storeID}/profile
method: GET
storeId: store id number
@gabeodess
gabeodess / ransackable_scopes.rb
Created January 14, 2016 16:51 — forked from frahugo/gist:8ceb262e929d4c0a9575
Ransack with JSONB query
class Registration < ActiveRecord::Base
scope :nhb_consent_eq, -> (enum = "yes") {
where("document @> ?", { nhb_consent: { value: enum } }.to_json )
}
private
def self.ransackable_scopes(auth_object = nil)
%i(nhb_consent_eq)
end