This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Email | Kickbox valid | mailgun valid | | |
| 0shawnjohnson@gmail.com | true | true | | |
| 1@gmail.co | true | false | | |
| 11@gmail.co | true | false | | |
| 111@dsa.co | false | true | | |
| 111111@dsad.co | false | false | | |
| 12@gmail.co | true | false | | |
| 1211221@yahoo.com | false | false | | |
| 121193agi@gmail.com | true | true | | |
| 12311@gmail.co | true | false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 5ac232d175d11e9126e973e3fa2f75f66b6bc318 | |
Author: Bogdan Gusiev <agresso@gmail.com> | |
Date: Tue Apr 21 17:44:24 2015 +0300 | |
Don't push yaml to sidekiq | |
diff --git a/app/controllers/concerns/public_template_rendering.rb b/app/controllers/concerns/public_template_rendering.rb | |
index 5c158e2..cd2178f 100644 | |
--- a/app/controllers/concerns/public_template_rendering.rb | |
+++ b/app/controllers/concerns/public_template_rendering.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign status = false %} | |
{% for code in friend_origin.coupon_codes %} | |
{% assign code_first_part = code | slice: 0, 4 %} | |
{% if code_first_part == "7XUB" %} | |
{% assign status = true %} | |
{% endif %} | |
{% endfor %} | |
{% if advocate_info.referrals_count <= 10 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
production >> EmailOfferShare.find(6726891).campaign.single_visitor_for_direct_shares? | |
=> true | |
production >> EmailOfferShare.find(6726891).offer.visitor_offers | |
=> #<ActiveRecord::Associations::CollectionProxy []> | |
production >> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GridExportWorker | |
include Sidekiq::Worker | |
sidekiq_options queue: :export | |
class << self | |
def count_with_limit(grid, limit) | |
# Remove pagination if any | |
csv_grid = grid.class.new(grid.attributes) | |
csv_grid.cached = false | |
csv_grid.count_with_limit(limit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/models/campaign.rb b/app/models/campaign.rb | |
index f1b12a5..7d54830 100644 | |
--- a/app/models/campaign.rb | |
+++ b/app/models/campaign.rb | |
@@ -687,10 +687,13 @@ class Campaign < BaseModel | |
end | |
def expires_at_for_share | |
+ # If new share needs to be created in expired campaign | |
+ # we prepare only set it relatively to the campaign deactivation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == Schema Information | |
# | |
# Table name: referrals | |
# | |
# id :integer not null, primary key | |
# referred_origin_id :integer not null | |
# offer_id :integer | |
# self_referral :boolean default(FALSE), not null | |
# cross_referral :boolean default(FALSE), not null | |
# fraud :boolean default(FALSE), not null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Datagrid | |
module Drivers | |
class Sequel < AbstractDriver #:nodoc: | |
def self.match?(scope) | |
return false unless defined?(::Sequel) | |
if scope.is_a?(Class) | |
scope.ancestors.include?(::Sequel::Model) | |
else | |
scope.is_a?(::Sequel::Dataset) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Inspiration < Feedback | |
belongs_to :user | |
belongs_to :group | |
belongs_to :inspired_group, :class_name => "Group", :foreign_key => "inspired_group_id" | |
#Will Paginate | |
cattr_reader :per_page | |
@@per_page = 10 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SearchController < ApplicationController | |
def index | |
case params[:show] | |
when 'people' | |
search_scope = [User] | |
when 'projects' | |
search_scope = [Project] | |
else | |
search_scope = [User, Project] | |
end |