Skip to content

Commit

Permalink
orm renamed to object_mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhomart committed Jan 31, 2015
1 parent 9cc7465 commit 8c58247
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/active_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,5 @@ def after_load(&block)
require 'active_admin/filters'

# Require ORM-specific plugins
require 'active_admin/orm/active_record' if defined? ActiveRecord
require 'active_admin/orm/mongoid' if defined? Mongoid
require 'active_admin/object_mapper/active_record' if defined? ActiveRecord
require 'active_admin/object_mapper/mongoid' if defined? Mongoid
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

ActiveAdmin::DatabaseHitDuringLoad.database_error_classes << ActiveRecord::StatementInvalid

require 'active_admin/orm/active_record/comments'
require 'active_admin/object_mapper/active_record/comments'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'active_admin/orm/active_record/comments/views'
require 'active_admin/orm/active_record/comments/show_page_helper'
require 'active_admin/orm/active_record/comments/namespace_helper'
require 'active_admin/orm/active_record/comments/resource_helper'
require 'active_admin/object_mapper/active_record/comments/views'
require 'active_admin/object_mapper/active_record/comments/show_page_helper'
require 'active_admin/object_mapper/active_record/comments/namespace_helper'
require 'active_admin/object_mapper/active_record/comments/resource_helper'

# Add the comments configuration
ActiveAdmin::Application.inheritable_setting :comments, true
Expand All @@ -14,7 +14,7 @@
ActiveAdmin.application.view_factory.show_page.send :include, ActiveAdmin::Comments::ShowPageHelper

# Load the model as soon as it's referenced. By that point, Rails & Kaminari will be ready
ActiveAdmin.autoload :Comment, 'active_admin/orm/active_record/comments/comment'
ActiveAdmin.autoload :Comment, 'active_admin/object_mapper/active_record/comments/comment'

# Walk through all the loaded namespaces after they're loaded
ActiveAdmin.after_load do |app|
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'active_admin/views'
require 'active_admin/object_mapper/active_record/comments/views/active_admin_comments'
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions lib/active_admin/orm/active_record/comments/views.rb

This file was deleted.

0 comments on commit 8c58247

Please sign in to comment.