Sha256: a96a433a0f1535b16f90ec255299b925a68e9dfb93ee797d53d69871470fe8e2

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

if defined?(Merb::Plugins)
  Merb::Plugins.config[:merb_sequel] = {}
  require File.join(File.dirname(__FILE__) / "merb" / "orms" / "sequel" / "connection")
  Merb::Plugins.add_rakefiles "merb_sequel" / "merbtasks"
  
  class Merb::Orms::Sequel::Connect < Merb::BootLoader

    after BeforeAppLoads

    def self.run
      Merb::Orms::Sequel.connect
      Merb::Orms::Sequel.register_session_type
    end

  end
  
  generators = File.join(File.dirname(__FILE__), 'generators')
  Merb.add_generators generators / :migration
  Merb.add_generators generators / :model
  Merb.add_generators generators / :resource_controller
  Merb.add_generators generators / :session_migration
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merb_sequel-0.9.5 lib/merb_sequel.rb
merb_sequel-0.9.4 lib/merb_sequel.rb