Fold in acts_as_readable plugin into lib so that it's loaded properly

This commit is contained in:
Luke Barratt 2015-08-23 12:06:27 +01:00
parent f8fd66e152
commit 4d04c47251
9 changed files with 3 additions and 8 deletions

View file

@ -15,8 +15,6 @@
# text_parsed :text
#
require File.join(Rails.root, 'vendor', 'plugins', 'acts-as-readable', 'init.rb')
class Issue < ActiveRecord::Base
include Extra

View file

@ -0,0 +1,3 @@
require 'acts_as_readable'
ActiveRecord::Base.send :include, ActiveRecord::Acts::Readable

View file

@ -1,6 +0,0 @@
require File.join(File.dirname(__FILE__), 'lib', 'acts_as_readable')
require File.join(File.dirname(__FILE__), 'lib', 'reading')
require File.join(File.dirname(__FILE__), 'lib', 'user_with_readings')
ActiveRecord::Base.send :include, ActiveRecord::Acts::Readable