Sha256: 0cea6570b29fee6e201d96432019732a03308e2721293c91c25a0c65081a220f
Contents?: true
Size: 373 Bytes
Versions: 8
Compression:
Stored size: 373 Bytes
Contents
require 'active_support/concern' module SimplePages module Models module PageAuthor extend ActiveSupport::Concern included do has_many :simple_pages, class_name: 'SimplePages::Page', as: :author end module ClassMethods end def simple_page_owner_option "#{self.class.name},#{self.id}" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems