lib/praxis/plugins/praxis_mapper_plugin.rb in praxis-0.21 vs lib/praxis/plugins/praxis_mapper_plugin.rb in praxis-0.22.pre.1
- old
+ new
@@ -31,11 +31,11 @@
# database: myapp_dev,
# adapter: mysql2
# }
# }
# 2. log_stats: A String indicating what kind of DB stats you would like
-# output into the Praxis::Application.instance.logger app log. Possible
+# output into the Praxis::Application.current_instance.logger app log. Possible
# values are: "detailed", "short", and "skip" (i.e. do not print the stats
# at all).
# 3. stats_log_level: the logging level with which the statistics should be logged.
#
# See http://praxis-framework.io/reference/plugins/ for further details on how
@@ -236,10 +236,10 @@
def self.short(identity_map)
self.to_logger identity_map.query_statistics.sum_totals.to_s
end
def self.to_logger(message)
- Praxis::Application.instance.logger.__send__(Plugin.instance.config.stats_log_level, "Praxis::Mapper Statistics: #{message}")
+ Praxis::Application.current_instance.logger.__send__(Plugin.instance.config.stats_log_level, "Praxis::Mapper Statistics: #{message}")
end
end
end
end
end