Skip to content

Instantly share code, notes, and snippets.

Building IT-products

Vitaliy Emeliyantsev gambala

Building IT-products
Block or report user

Report or block gambala

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mike-bhs /
Last active Feb 1, 2018
Polymorphic following without dependencies on objects that are followed

##Polymorphic following without dependencies on objects that are followed followable_concern.rb

module FollowableConcern
  extend ActiveSupport::Concern

  included do
    has_many :personal_followers, class_name: 'Core::Follow', as: :followingable, dependent: :destroy
    has_many :personal_followings, class_name: 'Core::Follow', as: :followerable, dependent: :destroy
kryzhovnik / routes.rb
Created May 22, 2015
Интеграция Яндекс.Кассы с Rails
View routes.rb
# config/routes.rb
YandexKassaIntegration::Application.routes.draw do
# ...
scope '/yandex_kassa' do
controller 'yandex_kassa', constraints: { subdomain: 'ssl' } do
post :check
post :aviso
get :success
get :fail
pboling / Gemfile
Last active Jan 4, 2018
My latest project's Gemfile, implements bundle group pattern
View Gemfile
source ''
# Follows the bundler group pattern described here:
# Gemfile.mine in root dir allows locally custom gems.
# NOTE: Doing this will change the Gemfile.lock - commit with care.
eval, 'Gemfile.mine')) if File.exists? File.join(File.dirname(__FILE__), 'Gemfile.mine')
ruby '1.9.3'
You can’t perform that action at this time.