Skip to content
View viktorchukhantsev's full-sized avatar
Block or Report

Block or report viktorchukhantsev

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. benefactor benefactor Public

    Useful Python snippets

    Python 3

  2. Two-way polymorphic models / Polymor... Two-way polymorphic models / Polymorphic HABTM association
    1
    class Article < ActiveRecord::Base # Product class is similar
    2
      belongs_to :user
    3
      has_many :media, as: :ownable
    4
      with_options through: :media, source: :representable do |assn|
    5
        assn.has_many :videos, source_type: 'Video'
  3. Simple jobs queue implementation on ... Simple jobs queue implementation on Ruby
    1
    module MyJobs
    2
        def self.backend
    3
          @backend
    4
        end
    5