RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: jhl-zest
hi, is there any way to encrypt on the way out / decrypt on the way in? i have sensitive info in my app that i'd like to ensure remains inaccessible to anyone who may connect to my memcache server.
for the touch => true property in the association, is it possible to chain these together?
i.e.
class Article < ActiveRecord::Base has_many :posts end
class Post < ActiveRecord::Base has_many :comments belongs_to :posts, :touch => true end
class Comment < ActiveRecord::Base belongs_to :posts, :touch => true end
in the above, if I do: Comment.first.touch will that touch the associated post AND article? (and therefore trigger a refresh on articles?)
hi, is there any way to encrypt on the way out / decrypt on the way in? i have sensitive info in my app that i'd like to ensure remains inaccessible to anyone who may connect to my memcache server.
for the touch => true property in the association, is it possible to chain these together?
i.e.
class Article < ActiveRecord::Base
has_many :posts
end
class Post < ActiveRecord::Base
has_many :comments
belongs_to :posts, :touch => true
end
class Comment < ActiveRecord::Base
belongs_to :posts, :touch => true
end
in the above, if I do:
Comment.first.touch
will that touch the associated post AND article? (and therefore trigger a refresh on articles?)