mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Fold in acts_as_readable plugin into lib so that it's loaded properly
This commit is contained in:
parent
f8fd66e152
commit
4d04c47251
9 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
3
lib/plugins/acts_as_readable/init.rb
Normal file
3
lib/plugins/acts_as_readable/init.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
require 'acts_as_readable'
|
||||
|
||||
ActiveRecord::Base.send :include, ActiveRecord::Acts::Readable
|
6
vendor/plugins/acts-as-readable/init.rb
vendored
6
vendor/plugins/acts-as-readable/init.rb
vendored
|
@ -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
|
Loading…
Reference in a new issue