When I try to:

```
class Construction < ActiveRecord::Base
  def columns
    ["a", "b"]
  end   
  store :dados, accessors: columns
end

```

I get:

```
undefined local variable or method `columns' for #<Class:0x007f891037dac0>

```

So, how should i do this?

PS: I have tried putting 'self.' before columns and it didn't work.

**EDIT — More info about the problem:**

I have set a series of Serialized Hash data stored on the column "dados". The method store does that and set attribute acessors. I have erased other parts of this code that are not really inherent to the problem, but basically, i need to inform the accesors attribute through a method instead of declaring directly there. The reason is because i'll reuse the method that generate the columns.

I wont be using the method in the instance variables, but instead inside the model itself. its for code reusing