Sha256: ca7b0cb2ab75625f4d18998711352d735740db3bdea566e9f21e9f14a51017e7

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

if RailsAdminComments.active_record?
  module RailsAdminComments
    class Comment < ActiveRecord::Base
    end
  end
end

module RailsAdminComments
  class Comment
    #binding.pry
    if RailsAdminComments.mongoid?
      include RailsAdminComments::Mongoid
    end

    if RailsAdminComments.active_record?
      self.table_name = "rails_admin_comments"
    end
      
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_admin_comments-0.1.1 app/models/rails_admin_comments/comment.rb
rails_admin_comments-0.1.0 app/models/rails_admin_comments/comment.rb