Skip to content

Deprecation Warning for Ruby 1.9.2 #5

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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