Skip to content
Browse files

Working copy

  • Loading branch information...
1 parent 996100d commit f5b0ec95bd6f68b0eb49c2266eff216a87d4b936 @ivoreis committed
Showing with 6 additions and 2 deletions.
  1. +3 −0 lib/acts_as_viewable.rb
  2. +2 −2 lib/acts_as_viewable/viewable.rb
  3. +1 −0 spec/debug.log
View
3 lib/acts_as_viewable.rb
@@ -5,7 +5,10 @@
module ActsAsViewable
if defined?(ActiveRecord::Base)
+ require 'acts_as_viewable/extenders/viewable'
+ require 'acts_as_viewable/extenders/viewer'
require 'acts_as_viewable/viewable'
+ require 'acts_as_viewable/view'
require 'acts_as_viewable/viewer'
end
View
4 lib/acts_as_viewable/viewable.rb
@@ -14,8 +14,8 @@ def viewable?
false
end
- def acts_as_favourable(*args)
- has_many :favourites, :class_name => "ActsAsViewable::View", :as => :viewable
+ def acts_as_viewable(*args)
+ has_many :views, :class_name => "ActsAsViewable::View", :as => :viewable
def self.viewable?
true
View
1 spec/debug.log
@@ -0,0 +1 @@
+# Logfile created on 2012-04-17 17:39:38 +0100 by logger.rb/31641

0 comments on commit f5b0ec9

Please sign in to comment.
Something went wrong with that request. Please try again.