Sha256: ef473c1c527101ecce9a44874f68cb418a5220f47a982f41e7694f3cf66cbdef

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

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

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

    if RailsAdminComments.active_record?
      self.table_name = "rails_admin_model_comments".freeze
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_admin_comments-0.2.3.3 app/models/rails_admin_comments/model_comment.rb
rails_admin_comments-0.3.0.4 app/models/rails_admin_comments/model_comment.rb
rails_admin_comments-0.2.3.2 app/models/rails_admin_comments/model_comment.rb
rails_admin_comments-0.3.0.3 app/models/rails_admin_comments/model_comment.rb
rails_admin_comments-0.3.0.1 app/models/rails_admin_comments/model_comment.rb
rails_admin_comments-0.3.0 app/models/rails_admin_comments/model_comment.rb
rails_admin_comments-0.2.1 app/models/rails_admin_comments/model_comment.rb