Sha256: e3ccf81c0303700909a70495a2c346e1ddbe96143793e0e4d81dd6e75a9fa5e4

Contents?: true

Size: 325 Bytes

Versions: 12

Compression:

Stored size: 325 Bytes

Contents

module ScrivitoContentBrowser
  module ObjExtension

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
scrivito_content_browser-0.65.2 config/initializers/obj_extension.rb
scrivito_content_browser-0.65.1 config/initializers/obj_extension.rb
scrivito_content_browser-0.65.0 config/initializers/obj_extension.rb
scrivito_content_browser-0.65.0.rc2 config/initializers/obj_extension.rb
scrivito_content_browser-0.65.0.rc1 config/initializers/obj_extension.rb
scrivito_content_browser-0.60.0 config/initializers/obj_extension.rb
scrivito_content_browser-0.60.0.rc2 config/initializers/obj_extension.rb
scrivito_content_browser-0.50.1 config/initializers/obj_extension.rb
scrivito_content_browser-0.60.0.rc1 config/initializers/obj_extension.rb
scrivito_content_browser-0.50.0 config/initializers/obj_extension.rb
scrivito_content_browser-0.50.0.rc2 config/initializers/obj_extension.rb
scrivito_content_browser-0.50.0.rc1 config/initializers/obj_extension.rb