Sha256: 6650c4b7013693ea388299f2dd436042efde91bbd2ece57984718a479c91a075
Contents?: true
Size: 546 Bytes
Versions: 4
Compression:
Stored size: 546 Bytes
Contents
require 'parrot/version' module Parrot mattr_accessor :author_class def self.author_class @@author_class.constantize end class Engine < Rails::Engine engine_name 'parrot' # isolate_namespace Parrot # FIXME: tries application url helpers (undefined method `post_comments_path') initializer 'parrot' do |app| ActiveSupport.on_load(:active_record) do require File.join(File.dirname(__FILE__), 'parrot', 'model_additions') ::ActiveRecord::Base.send :include, Parrot::Model end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
parrot-0.0.5 | lib/parrot.rb |
parrot-0.0.4 | lib/parrot.rb |
parrot-0.0.3 | lib/parrot.rb |
parrot-0.0.2 | lib/parrot.rb |