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

Version Path
simple-pages-rails-0.7.0 lib/simple_pages/models/page_author.rb
simple-pages-rails-0.6.0 lib/simple_pages/models/page_author.rb
simple-pages-rails-0.5.0 lib/simple_pages/models/page_author.rb
simple-pages-rails-0.4.0 lib/simple_pages/models/page_author.rb
simple-pages-rails-0.3.1 lib/simple_pages/models/page_author.rb
simple-pages-rails-0.3.0 lib/simple_pages/models/page_author.rb
simple-pages-rails-0.2.0 lib/simple_pages/models/page_author.rb
simple-pages-rails-0.1.0 lib/simple_pages/models/page_author.rb