diff --git a/lib/bulletmark_repairer/configuration.rb b/lib/bulletmark_repairer/configuration.rb index 729dd17..e844599 100644 --- a/lib/bulletmark_repairer/configuration.rb +++ b/lib/bulletmark_repairer/configuration.rb @@ -3,16 +3,16 @@ module BulletmarkRepairer class Configration attr_accessor :skip_file_list, :logger - attr_writer :development + attr_writer :debug def initialize - @development = false + @debug = false @skip_file_list = [] @logger = Logger.new("#{Rails.root}/log/bulletmark_repairer.log") end - def development? - @development + def debug? + @debug end end diff --git a/lib/bulletmark_repairer/rack.rb b/lib/bulletmark_repairer/rack.rb index a58c475..be37c12 100644 --- a/lib/bulletmark_repairer/rack.rb +++ b/lib/bulletmark_repairer/rack.rb @@ -19,7 +19,7 @@ def call(env) ) end rescue StandardError => e - raise e if BulletmarkRepairer.config.development? + raise e if BulletmarkRepairer.config.debug? end end end