Sha256: b1fe8b4f4976403dad5f5567263b5259469fe18c2eaac04d4df5e04074d434e0
Contents?: true
Size: 909 Bytes
Versions: 2
Compression:
Stored size: 909 Bytes
Contents
if defined?(Merb::Plugins) dependency "activerecord" require File.join(File.dirname(__FILE__) / "merb" / "orms" / "active_record" / "connection") Merb::Plugins.add_rakefiles(File.join(File.dirname(__FILE__) / "active_record" / "merbtasks")) class Merb::Orms::ActiveRecord::Connect < Merb::BootLoader after BeforeAppLoads def self.run Merb::Orms::ActiveRecord.connect if Merb::Config.session_stores.include?(:activerecord) Merb.logger.debug "Using ActiveRecord sessions" require File.join(File.dirname(__FILE__) / "merb" / "session" / "active_record_session") end 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_activerecord-0.9.6 | lib/merb_activerecord.rb |
merb_activerecord-0.9.7 | lib/merb_activerecord.rb |