Skip to content

Deprecation Warning for Ruby 1.9.2 #5

@nacengineer

Description

@nacengineer

Bruce,

I get a deprecation warning for line 39 of bitmask_attribute.rb

current line is
model.bitmasks[attribute] = returning HashWithIndifferentAccess.new do |mapping|

for deprecation fix it needs to be:
model.bitmasks[attribute] = ( HashWithIndifferentAccess.new ).tap do |mapping|

Thanks for the great plugin!
Dave

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