toolbox 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- 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