Sha256: 89a134bd49f8f0e76c20d40642b09cce2490437387f87455647ddc62fddbcb74

Contents?: true

Size: 319 Bytes

Versions: 14

Compression:

Stored size: 319 Bytes

Contents

module Blogit
  class Engine < Rails::Engine
    isolate_namespace Blogit
    
    initializer "blogit.extend_active_record" do

      if defined?(::ActiveRecord::Base)
        ::ActiveRecord::Base.send(:include, Blogit::Blogs)
        ::ActiveRecord::Base.send(:include, Validators)
      end
      
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
blogit-1.1.2 lib/blogit/engine.rb
blogit-1.1.1 lib/blogit/engine.rb
blogit-1.1.0 lib/blogit/engine.rb
blogit-1.0.0 lib/blogit/engine.rb
blogit-1.0.0.rc1 lib/blogit/engine.rb
blogit-0.8.0 lib/blogit/engine.rb
blogit-0.7.0 lib/blogit/engine.rb
blogit-0.6.0 lib/blogit/engine.rb
blogit-0.5.1 lib/blogit/engine.rb
blogit-0.5.0 lib/blogit/engine.rb
blogit-0.4.8 lib/blogit/engine.rb
blogit-0.4.7 lib/blogit/engine.rb
blogit-0.4.6 lib/blogit/engine.rb
blogit-0.4.5 lib/blogit/engine.rb