Skip to content

Instantly share code, notes, and snippets.

@repertoire
Created June 20, 2011 13:43
Show Gist options
  • Save repertoire/1035618 to your computer and use it in GitHub Desktop.
Save repertoire/1035618 to your computer and use it in GitHub Desktop.
proper way to do this?
class MyModel < ActiveRecord::Base
attr_accessible :some_string
acts_as_somethinger :some_string
end
> a_my_model = MyModel.new
> a_my_model.some_string = 'This is a string.'
> a_my_model.some_string.do_something
"something!"
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment