Skip to content

Commit

Permalink
tt
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Said committed Oct 13, 2014
1 parent 57bd50b commit c2eedfb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions lib/citier/acts_as_citier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions lib/citier/core_ext.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class ActiveRecord::Base

def self.set_acts_as_citier(citier)
@acts_as_citier = citier
end
Expand Down Expand Up @@ -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?
Expand All @@ -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?
Expand All @@ -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

0 comments on commit c2eedfb

Please sign in to comment.