lib/socrates/core/state.rb in socrates-0.1.7 vs lib/socrates/core/state.rb in socrates-0.1.8

- old
+ new

@@ -1,8 +1,13 @@ require "hashie" require "erb" +require "socrates/configuration" +require "socrates/logger" +require "socrates/string_helpers" +require "socrates/core/state_data" + module Socrates module Core module State attr_reader :data, :context @@ -10,10 +15,10 @@ @data = data @adapter = adapter @context = context @next_state_id = nil @next_state_action = nil - @logger = Socrates::Config.logger || Socrates::Logger.default + @logger = Socrates.config.logger || Socrates::Logger.default end def next_state_id if @next_state_id.nil? state_id_from_classname