Method: Versionary#copyable_attributes
- Defined in:
- lib/buzztools/extras/versionary.rb
#copyable_attributes ⇒ Object
130 131 132 133 134 135 136 137 |
# File 'lib/buzztools/extras/versionary.rb', line 130 def copyable_attributes result = {} self.class.columns.each do |c| next if ['id', 'version'].include? c.name result[c.name.to_sym] = self.send(c.name) end result end |