madeintandem / hstore_accessor

Adds typed hstore-backed field support to ActiveRecord models.
MIT License
242 stars 47 forks source link

Calling an array defined method without data associated to it throws an exception #1

Closed tonycoco closed 11 years ago

tonycoco commented 11 years ago

If I have...

class Model < ActiveRecord::Base
  hstore_accessor :data, some_array: :array
end

and I call...

model = Model.new
model.some_array

it will raise an exception...

NoMethodError: undefined method `split' for nil:NilClass
tonycoco commented 11 years ago

I have a fix. I just need to get some time to put it in.

thegrubbsian commented 11 years ago

Should be fixed in 0.3.0