Sha256: c93c515ba1991216afd2518ad1ec70080c136816cd2ea1752c0d8ec65ac30947

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

module Precious
  module Views
    class Create < Layout
      include Editable

      attr_reader :page, :name

      def title
        "Create a new page"
      end

      def page_name
        @name.gsub('-', ' ')
      end

      def formats
        super(:markdown)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gollum-1.1.1 lib/gollum/frontend/views/create.rb
gollum-1.1.0 lib/gollum/frontend/views/create.rb
tecnh-gollum-1.0.2.auth2 lib/gollum/frontend/views/create.rb
tecnh-gollum-1.0.2.auth lib/gollum/frontend/views/create.rb
gollum-1.0.1 lib/gollum/frontend/views/create.rb
gollum-1.0.0 lib/gollum/frontend/views/create.rb