Sha256: 7cec7164cc1a6defece002fbb2b6fcd89f02f62be7fc4eb14d5b4444468f4a36

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 Bytes

Contents

module LowVoltage
  class Configuration
    attr_accessor :layout, :content_path, :use_routes, :use_action_caching, :posts_per_page

    def initialize
      @layout = "application"
      @content_path = "posts"
      @use_routes = true
      @use_action_caching = true
      @posts_per_page = 10
    end

    def full_content_path
      Rails.root.join("app/views/#{LowVoltage.configuration.content_path}/*.md")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
low_voltage-0.0.3 lib/low_voltage/configuration.rb
low_voltage-0.0.2 lib/low_voltage/configuration.rb
low_voltage-0.0.1 lib/low_voltage/configuration.rb