Sha256: 8aa222b386d86d1cc1cf0d9d0ac687f76733d0599843b3411b8a0c88300fb964

Contents?: true

Size: 476 Bytes

Versions: 2

Compression:

Stored size: 476 Bytes

Contents

# Requires
require "active_support/dependencies"

module Order
  # Our host application root path
  # We set this when the engine is initialized
  mattr_accessor :app_root

  # Yield self on setup for nice config blocks
  def self.setup
    yield self
  end

end


def export_dir
  if has_asset_pipeline?
    "app/assets/javascripts/order"
  else
    "public/javascripts"
  end
end

def javascript_file
  Rails.root.join(export_dir, "si.order.js")
end

require "order/engine"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stayind-order-0.0.2 lib/order.rb~
stayind-order-0.0.1 lib/order.rb