lib/active_admin/views/action_items.rb in activeadmin-0.6.6 vs lib/active_admin/views/action_items.rb in activeadmin-1.0.0.pre1
- old
+ new
@@ -3,11 +3,11 @@
class ActionItems < ActiveAdmin::Component
def build(action_items)
action_items.each do |action_item|
- span :class => "action_item" do
- instance_eval(&action_item.block)
+ span class: "action_item" do
+ instance_exec(&action_item.block)
end
end
end
end