lib/eav_hashes/eav_hash.rb
# Saves any modified entries and deletes any which have been nil'd to save DB space
Saves any modified entries and deletes any which have been nil'd to save DB space
Saves any modified entries and deletes any which have been nil ' d to save DB space
def save_entries
        return unless (@entries and @changes_made)
        @entries.values.each do |entry|
          if entry.value.nil?
            entry.delete
          else
            set_entry_owner(entry)
            entry.save
          end
        end
      end
def save_entries return unless ( @entries and @changes_made ) @entries . values . each do | entry | if entry . value . nil? entry . delete else set_entry_owner ( entry ) entry . save end end end
Saves any modified entries and deletes any which have been nil'd to save DB space
Saves any modified entries and deletes any which have been nil ' d to save DB space
# The entries are lazy-loaded, so don't do anything if they haven't been accessed or modified