Skip to content

Commit a0678f6

Browse files
committed
Allow manually fetching video details
1 parent 845db78 commit a0678f6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/admin/media_items.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,12 @@
1616
f.input :libraries, :as => :select, :input_html => { :multiple => true }
1717
f.actions
1818
end
19+
20+
action_item :fetch_details, only: [:show, :edit] do
21+
link_to fetch_details_admin_media_item_path(resource)
22+
end
23+
24+
member_action :fetch_details, method: :get do
25+
resource.update(updated_at: nil, reachable: nil)
26+
end
1927
end

0 commit comments

Comments
 (0)