Sha256: a3334202e5cdeac5455d848a90dc6649d351106d851f5f9182d3061a6d646158

Contents?: true

Size: 307 Bytes

Versions: 15

Compression:

Stored size: 307 Bytes

Contents

view(:summary) do |*args|
  params = args.extract_options!
  briefcase = args.first

  briefcase.present(:default, params).tap do |hash|
    if summary = briefcase.pages.find {|p| p.title == "Summary" }
      hash.merge!(summary: summary.to_model.as_json(:rendered=>true, :content=>true))
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
brief-1.8.11 apps/blueprint/config.rb
brief-1.8.10 apps/blueprint/config.rb
brief-1.8.9 apps/blueprint/config.rb
brief-1.8.8 apps/blueprint/config.rb
brief-1.8.6 apps/blueprint/config.rb
brief-1.8.5 apps/blueprint/config.rb
brief-1.8.4 apps/blueprint/config.rb
brief-1.8.3 apps/blueprint/config.rb
brief-1.8.2 apps/blueprint/config.rb
brief-1.8.1 apps/blueprint/config.rb
brief-1.8.0 apps/blueprint/config.rb
brief-1.7.3 apps/blueprint/config.rb
brief-1.7.2 apps/blueprint/config.rb
brief-1.7.1 apps/blueprint/config.rb
brief-1.7.0 apps/blueprint/config.rb