Sha256: e45f0205fdbca442b865f522750609c72f5df5ace9b6c383a16ab3997289d1be

Contents?: true

Size: 561 Bytes

Versions: 8

Compression:

Stored size: 561 Bytes

Contents

module Storytime
  module Dashboard
    module SitesHelper
      def post_slug_style_options
        [
          ["Default - e.g. /posts/post-title", :default],
          ["Day and Name - e.g. /1985/06/09/post-title", :day_and_name], 
          ["Month and Name - e.g. /1985/06/post-title", :month_and_name], 
          ["Post ID - e.g. /posts/123", :post_id], 
        ]
      end

      def application_layouts
        Dir.glob(Rails.root.join("app", "views", "layouts", "**/*")).map{|layout| layout.split("/").last.split(".")[0]}
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
storytime-2.1.6 app/helpers/storytime/dashboard/sites_helper.rb
storytime-2.1.5 app/helpers/storytime/dashboard/sites_helper.rb
storytime-2.1.4 app/helpers/storytime/dashboard/sites_helper.rb
storytime-2.1.3 app/helpers/storytime/dashboard/sites_helper.rb
storytime-2.1.2 app/helpers/storytime/dashboard/sites_helper.rb
storytime-2.1.1 app/helpers/storytime/dashboard/sites_helper.rb
storytime-2.1.0 app/helpers/storytime/dashboard/sites_helper.rb
storytime-2.0.0 app/helpers/storytime/dashboard/sites_helper.rb