Sha256: 628ac566cccdca5f672a40d66b4d8abede28a4ecd6fc5839cf9ebf45c3cf5719

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

module Inkwell
  class BlogItem < ActiveRecord::Base
    if ::Inkwell::Engine::config.respond_to?('community_table')
      belongs_to ::Inkwell::Engine::config.community_table.to_s.singularize.to_sym, :foreign_key => :owner_id
    end
    belongs_to ::Inkwell::Engine::config.post_table.to_s.singularize.to_sym, :foreign_key => :item_id
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inkwell-2.0.0 app/models/inkwell/blog_item.rb