lib/landable/configuration.rb in landable-1.10.0.rc2 vs lib/landable/configuration.rb in landable-1.11.0

- old
+ new

@@ -8,10 +8,11 @@ attr_writer :traffic_enabled attr_writer :sitemap_exclude_categories, :sitemap_protocol, :sitemap_host, :sitemap_additional_paths attr_writer :reserved_paths, :partials_to_templates, :database_schema_prefix attr_writer :publicist_url, :audit_flags attr_writer :blank_user_agent_string, :untracked_paths + attr_writer :dnt_enabled def authenticators @authenticators || raise("No Landable authenticator configured.") end @@ -146,9 +147,16 @@ end def untracked_paths @untracked_paths ||= [] end + + def dnt_enabled + return true if @dnt_enabled.nil? + + @dnt_enabled + end + class Screenshots attr_accessor :autorun attr_accessor :browserstack_username, :browserstack_password