Sha256: 634bfa40df7d68d46624d648bd667d2d066d1796065d5ad2cf4ccb41051af549
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
require 'active_support/concern' module SimplePages 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple-pages-rails-0.0.1 | lib/simple_pages/page_author.rb |