Sha256: ab2a5f64e2aec580275e7442b8fd5032055c5316b197611d9432d8e1f951950f

Contents?: true

Size: 796 Bytes

Versions: 4

Compression:

Stored size: 796 Bytes

Contents

module Makasi
  class Config
    def self.rails_config
      Rails.configuration.x.makasi
    end

    def self.setup
      yield(rails_config)
    end

    def self.cloudsearch_index
      rails_config.cloudsearch_index
    end

    def self.sitemap_url
      rails_config.sitemap_url
    end

    def self.website_url
      rails_config.website_url
    end

    def self.content_selector
      rails_config.content_selector || "[data-indexable]"
    end

    def self.resource_name_selector
      rails_config.resource_name_selector || "[data-title]"
    end

    def self.cloudsearch_api_version
      rails_config.cloudsearch_api_version.presence || "2013-01-01"
    end

    def self.cloudsearch_aws_region
      rails_config.cloudsearch_aws_region.presence || "us-east-1"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
makasi-0.1.8 lib/makasi/config.rb
makasi-0.1.6 lib/makasi/config.rb
makasi-0.1.5 lib/makasi/config.rb
makasi-0.1.4 lib/makasi/config.rb