Module: HasArchive::ClassMethods
- Defined in:
- lib/has_archive.rb
Instance Method Summary collapse
Instance Method Details
#archived ⇒ Object
30 31 32 33 |
# 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 |