Sha256: 336fd275d838c01718f5189e5be3b82bf6397a72170f8d9406643c000f77bdbd
Contents?: true
Size: 306 Bytes
Versions: 4
Compression:
Stored size: 306 Bytes
Contents
require 'active_record' module Feedable module FeedableRecord extend ActiveSupport::Concern module ClassMethods def feedable(col) class_attribute :feedable_col self.feedable_col = col end end end end ActiveRecord::Base.send :include, Feedable::FeedableRecord
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
feedable-0.9.3 | lib/feedable/active_record.rb |
feedable-0.9.2 | lib/feedable/active_record.rb |
feedable-0.9.1 | lib/feedable/active_record.rb |
feedable-0.9.0 | lib/feedable/active_record.rb |