Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Working copy

  • Loading branch information...
commit f5b0ec95bd6f68b0eb49c2266eff216a87d4b936 1 parent 996100d
@ivoreis authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.