Sha256: a8999359c9f7a80573af51230e32e0ad193dde4a1f33221934878fc72633375e

Contents?: true

Size: 258 Bytes

Versions: 31

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

module Onebox
  module LayoutSupport

    def self.max_text
      500
    end

    def layout
      @layout ||= Layout.new(self.class.onebox_name, record, @cache)
    end

    def to_html
      layout.to_html
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
onebox-1.9.0 lib/onebox/layout_support.rb
onebox-1.8.99 lib/onebox/layout_support.rb
onebox-1.8.98 lib/onebox/layout_support.rb
onebox-1.8.97 lib/onebox/layout_support.rb
onebox-1.8.96 lib/onebox/layout_support.rb
onebox-1.8.95 lib/onebox/layout_support.rb
onebox-1.8.94 lib/onebox/layout_support.rb
onebox-1.8.93 lib/onebox/layout_support.rb
onebox-1.8.92 lib/onebox/layout_support.rb
onebox-1.8.91 lib/onebox/layout_support.rb
onebox-1.8.90 lib/onebox/layout_support.rb