Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove logging messages.

  • Loading branch information...
commit 67f81c46870f6ea05a7fc6866ecc352722b1f609 1 parent 530fbb3
@lukaso lukaso authored
View
9 lib/active_admin/mongoid/adaptor.rb
@@ -1,3 +1,9 @@
+# module Mongoid::Document
+# def method_missing(method_id, *args, &block)
+# send(:fields, args, block) if method_id == :columns_hash
+# end
+# end
+
module ActiveAdmin
module Mongoid
module Adaptor
@@ -7,7 +13,6 @@ class Search
attr_reader :base, :query, :query_hash, :search_params
def initialize(object, search_params = {})
- Rails.logger.debug "********search new: #{search_params}, get_query_hash: #{get_query_hash(search_params)}"
@base = object
@search_params = search_params
@query_hash = get_query_hash(search_params)
@@ -19,8 +24,6 @@ def respond_to?(method_id)
end
def method_missing(method_id, *args, &block)
- Rails.logger.debug "********method_missing: #{method_id}::#{args}"
-
if is_query(method_id)
return @search_params[method_id.to_s]
end
View
1  lib/active_admin/mongoid/filter_form_builder.rb
@@ -20,7 +20,6 @@ def column_for(method)
end
def reflection_for(method)
- Rails.logger.debug "*********** reflects: #{@object.class.respond_to?(:reflect_on_association)}"
@object.class.reflect_on_association(method) if @object.class.respond_to?(:reflect_on_association)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.