toolbox 0.1.1 → 0.1.2
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/toolbox/default_controller.rb +1 -1
- data/lib/toolbox/rendering.rb +1 -1
- data/lib/toolbox/version.rb +1 -1
- metadata +1 -1
data/lib/toolbox/rendering.rb
CHANGED
@@ -373,7 +373,7 @@ module Toolbox
|
|
373
373
|
when 'show'
|
374
374
|
@view.link_to label, @view.polymorphic_path(rec), :class => css_class
|
375
375
|
when 'destroy'
|
376
|
-
msg =
|
376
|
+
msg = @view.send(:_, 'Are you sure?')
|
377
377
|
if context
|
378
378
|
url = @view.polymorphic_path(rec)
|
379
379
|
@view.link_to_remote label, { :url => url, :method => :delete, :confirm => msg }, {:class => css_class }
|
data/lib/toolbox/version.rb
CHANGED