I hereby claim:
- I am ejlangev on github.
- I am ejlangev (https://keybase.io/ejlangev) on keybase.
- I have a public key whose fingerprint is 81F7 F97E A17A A08F 700B E0D3 12B5 3827 1EB8 6F18
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Postman | |
include Interactor | |
def perform(context) | |
create_message_log | |
CreateMessageSummary.perform(context) | |
EnqueueMessageJob.perform(context) |
class Postman | |
include Interactor | |
def perform | |
if should_send_push_notification? | |
Postman::SendPushNotification.perform(context) | |
else | |
Postman::SendTextMessage.perform(context) | |
end |
feature "Short Messaging" do | |
let(:member) { create(:member) } | |
let(:admin) { create(:admin) } | |
let(:message) { | |
GrouperShortMessager.custom_message(message, admin, "Hello, World!") | |
} | |
around do |example| | |
previous_value = Resque.inline |
Dare.where(category: 'Next Level').update_all(category: "Next Level Dares") | |
Dare.where(category: 'Warm Up').update_all(category: 'Get Warmed Up') |
Venue.where('bounce_venue_id IS NOT NULL').includes(:bounce_venue).select { |v| v.city_id != v.bounce_venue.city_id }.map(&:id) |
$ -> | |
$("#scared, #down-arrow, #example-button").click -> | |
$("html, body").animate | |
scrollTop: $("#dares-photos").offset().top | |
, 1000 | |
return false |
class CreditCardController < ApplicationController | |
def create | |
creator = CreditCardCreator.call(params) | |
# creator.respond_to?(:errors) => true | |
# creator.errors => [] (by default) | |
# when something goes wrong: creator.errors => ['Terrible Error'] | |
respond_with(creator) | |
end | |
end |
class ForeignKeyValidator < ActiveModel::EachValidator | |
def validate_each(record, attribute, value) | |
unless value && value.to_s =~ /^\d+$/ && value.to_i > 0 | |
record.errors[attribute] << 'is not a valid foreign key' | |
end | |
end | |
end |
{ | |
"size": 0, | |
"query": { | |
"filtered": { | |
"filter": { | |
"bool": { | |
"must": [ | |
{ | |
"exists": { | |
"field": "address.full" |