Sha256: ee6771cbd9c47ae3cf23650a3b03ea59be3f698fd1066f2de1bbd19616fa176e

Contents?: true

Size: 327 Bytes

Versions: 9

Compression:

Stored size: 327 Bytes

Contents

# encoding: utf-8

require "pupu"
require "pupu/helpers"

Pupu.framework = :merb

def Pupu.environment
  Merb.environment
end

def Pupu.logger
  Merb.logger
end

Merb::BootLoader.before_app_loads do
  Pupu.root = Merb.root
  Pupu.media_root = File.join(Merb.root, "public")
  Merb::Controller.send(:include, Pupu::Helpers)
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pupu-0.2.1 lib/pupu/adapters/merb.rb
pupu-0.2 lib/pupu/adapters/merb.rb
pupu-0.1 lib/pupu/adapters/merb.rb
pupu-0.0.5.5 lib/pupu/adapters/merb.rb
pupu-0.0.5.4 lib/pupu/adapters/merb.rb
pupu-0.0.5.3 lib/pupu/adapters/merb.rb
pupu-0.0.5.2 lib/pupu/adapters/merb.rb
pupu-0.0.5.1 lib/pupu/adapters/merb.rb
pupu-0.0.5 lib/pupu/adapters/merb.rb