Sha256: c3d115763974cddb2648878b0f3e273bcdb3727bead5ab17350fc9885a0cc712

Contents?: true

Size: 316 Bytes

Versions: 9

Compression:

Stored size: 316 Bytes

Contents

module ScrivitoContentBrowser
  module ObjExtension

    def info_for_content_browser
      if binary?
        "#{file_extension.upcase} #{ConverterHelper.human_binary_length self}"
      else
        obj_class_name
      end
    end
  end
end
Scrivito::BasicObj.send(:include, ScrivitoContentBrowser::ObjExtension)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scrivito_content_browser-0.70.2 config/initializers/obj_extension.rb
scrivito_content_browser-0.70.1 config/initializers/obj_extension.rb
scrivito_content_browser-0.70.0 config/initializers/obj_extension.rb
scrivito_content_browser-0.70.0.rc3 config/initializers/obj_extension.rb
scrivito_content_browser-0.70.0.rc2 config/initializers/obj_extension.rb
scrivito_content_browser-0.70.0.rc1 config/initializers/obj_extension.rb
scrivito_content_browser-0.66.0 config/initializers/obj_extension.rb
scrivito_content_browser-0.66.0.rc2 config/initializers/obj_extension.rb
scrivito_content_browser-0.66.0.rc1 config/initializers/obj_extension.rb