```ruby
require 'ship_fosdick/version'
require 'ship_fosdick/railtie'
require 'ship_fosdick/engine'

# Fosdick integration entry point.
# Will check to see if Rails and a confuration is available.
# Including bootstrapping all needed files for your shipping pleasure
module ShipFosdick
  if defined?(Rails)
    def self.configure(&block)
      if block_given?
        block.call(ShipFosdick::Railtie.config.ship_fosdick)
      else
        ShipFosdick::Railtie.config.ship_fosdick
      end
    end
  else
    def self.config
      @@config ||= OpenStruct.new()
      @@config
    end
  end
end
```

Clean Up If Rails Block
user
```ruby
require 'spree_core'
require 'ship_fosdick/version'
require 'ship_fosdick/railtie'
require 'ship_fosdick/engine'

# Fosdick integration entry point.
# Will check to see if Rails confuration is available.
# Including bootstrapping all needed files for your shipping pleasure
module ShipFosdick
  def self.configure(&block)
    if block_given?
      block.call(ShipFosdick::Railtie.config.ship_fosdick)
    else
      ShipFosdick::Railtie.config.ship_fosdick
    end
  end
end
```
assistant