From c2eedfb61a02c1b9f256a59621af7f90b329e4c4 Mon Sep 17 00:00:00 2001 From: Mahmoud Said Date: Mon, 13 Oct 2014 10:11:18 +0200 Subject: [PATCH] tt --- lib/citier/acts_as_citier.rb | 1 + lib/citier/core_ext.rb | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/citier/acts_as_citier.rb b/lib/citier/acts_as_citier.rb index 9d8351c..3ac8c28 100644 --- a/lib/citier/acts_as_citier.rb +++ b/lib/citier/acts_as_citier.rb @@ -3,6 +3,7 @@ module ActsAsCitier def self.included(base) # When a class includes a module the module’s self.included method will be invoked. base.send :extend, Citier::ClassMethods + base.send :extend, Citier::InstanceMethods end end end diff --git a/lib/citier/core_ext.rb b/lib/citier/core_ext.rb index 753aa27..107745f 100644 --- a/lib/citier/core_ext.rb +++ b/lib/citier/core_ext.rb @@ -1,5 +1,4 @@ class ActiveRecord::Base - def self.set_acts_as_citier(citier) @acts_as_citier = citier end @@ -80,7 +79,6 @@ def drop_citier_view(theclass) #function for dropping views for migrations end def update_citier_view(theclass) #function for updating views for migrations - citier_debug("Updating citier view for #{theclass}") if theclass.table_exists? @@ -89,11 +87,9 @@ def update_citier_view(theclass) #function for updating views for migrations else citier_debug("Error: #{theclass} VIEW doesn't exist.") end - end def create_or_update_citier_view(theclass) #Convienience function for updating or creating views for migrations - citier_debug("Create or Update citier view for #{theclass}") if theclass.table_exists? @@ -102,5 +98,4 @@ def create_or_update_citier_view(theclass) #Convienience function for updating o citier_debug("VIEW DIDN'T EXIST. Now creating for #{theclass}") create_citier_view(theclass) end - end