lib/gollum/views/editable.rb in gollum-4.1.4 vs lib/gollum/views/editable.rb in gollum-5.0.0

- old
+ new

@@ -1,10 +1,16 @@ module Precious module Editable + def has_editor + true + end + def formats(selected = @page.format) Gollum::Markup.formats.map do |key, val| { :name => val[:name], :id => key.to_s, + :enabled => val.fetch(:enabled, true), + :ext => Gollum::Page.format_to_ext(key), :selected => selected == key } end.sort do |a, b| a[:name].downcase <=> b[:name].downcase end end