Skip to content

Fixed a bug in write_entry() #2

@nengxu

Description

@nengxu

Thanks for creating this gem. I encountered a problem when using it:

  Rails.cache.write(key, trans)
  trans.delete_if {|key, value| value[:cen].blank? }

will raise an error saying trans is frozen, where trans is a hash. However, the above statements worked fine with file store.

I forked and fixed this bug as in:
http://github.com/nengxu/mongo_store/commit/f72c013e33fc387058968381bc42b2a0a738688b

Please review. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions