Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Disable loading of data-store and other stuff if funnelcake is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Krall authored and Josh Krall committed Mar 21, 2010
1 parent 6499f42 commit f7ef8c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/funnel_cake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def event(name, opts={}, &block)
end

class << self
@@configuration = nil
@@configuration ||= nil

# Accessors for FunnelCake's configuration settings
def configuration; @@configuration; end
Expand Down Expand Up @@ -76,6 +76,7 @@ def reset_configuration

# Initializes the FunnelCake library, and applies the configuration settings
def run
return unless enabled?
initialize_datastore_hooks!
initialize_state_machine!
end
Expand Down

0 comments on commit f7ef8c7

Please sign in to comment.