gbdev-acts_as_callback_logger 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/logger_link_to.rb +1 -2
- metadata +1 -1
data/lib/logger_link_to.rb
CHANGED
@@ -11,8 +11,7 @@ module ActionView::Helpers::AssetTagHelper
|
|
11
11
|
# TODO: add object checker stuff here....
|
12
12
|
|
13
13
|
# Get model updated in the transaction
|
14
|
-
model = ActiveSupport::Inflector.
|
15
|
-
model = ActiveSupport::Inflector.camelize(model).constantize
|
14
|
+
model = ActiveSupport::Inflector.camelize(app_log_object.model).constantize
|
16
15
|
# obj = model.find(obj_id)
|
17
16
|
return app_log_object.msg if model.callback_logger_object_url.blank?
|
18
17
|
|