Sha256: e85962271d987c5044908cb66b3ff080133746d876cd22fa1d92e9ed0e6b9aca

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

require 'type_station/blocks/base'

module TypeStation
  module Blocks
    class NewPage < Base

      private

      def tag_data
        super.merge({ts_parent_id: model.to_param, ts_fields: (options[:fields] || [{name: :title, type: 'text', label: 'Page Title'}])})
      end

      def tag_ts_url
        model.new_url
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
type_station-0.1.3 lib/type_station/blocks/new_page.rb
type_station-0.1.1 lib/type_station/blocks/new_page.rb