Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Nov 15, 2011
1 parent 9d24d6a commit 6afbfc4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/likeable/module_methods.rb
Expand Up @@ -100,23 +100,7 @@ def user_class=(klass)
# like.redis = Redis.new(#...)
# like.find_one = lambda {|klass, id | klass.where(:id => id)}
# like.find_many = lambda {|klass, ids| klass.where(:id => ids)}
# like.classes = Spot, Comment
# end


def include_in_class(klass, include_item)
case
when defined?(Rails::Application)
Rails::Application.class_eval do
config.to_prepare do
klass.send :include, include_item
end
end
else
klass.send :include, include_item
end
end

def setup(&block)
yield self unless block.blank?
true
Expand Down

0 comments on commit 6afbfc4

Please sign in to comment.