Skip to content

Commit

Permalink
Set config file default instead of overloading method.
Browse files Browse the repository at this point in the history
  • Loading branch information
nextmat committed Sep 4, 2012
1 parent 41ab3fc commit 01f1e80
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/metrics/rails.rb
Expand Up @@ -23,6 +23,7 @@ module Rails
FORKING_SERVERS = [:unicorn, :passenger]

mattr_accessor :config_file
self.config_file = 'config/metrics.yml'

# config options
mattr_accessor :api_key
Expand All @@ -39,10 +40,6 @@ module Rails

class << self

def config_file
@@config_file ||= 'config/metrics.yml'
end

# access to internal aggregator object
def aggregate
@aggregator_cache ||= Aggregator.new
Expand Down

0 comments on commit 01f1e80

Please sign in to comment.