module HasArchive::ClassMethods
Public Instance Methods
archived()
click to toggle source
# File lib/has_archive.rb, line 30 def archived union = self.unscoped.union(self::Archive.unscoped.select(self.attribute_names.map(&:to_sym))) self.from(self.arel_table.create_table_alias(union, self.table_name.to_sym).to_sql) end