search for: instance_read

Displaying 2 results from an estimated 2 matches for "instance_read".

2011 Jan 08
1
Paperclip custom Interpolation in url
...red in the Post model) interpolation function as defined in the Paperclip Interpolation module below. -------------------------------------------- module Paperclip module Interpolations def post_date attachment, style_name attachment.<access the post class/model here>.instance_read(:post_date).to_s end end end ------------------------------------------------- Problem: The problem I am running into is that I can''t seem to access the post model object from the definition of post_date function above - the attachment I understand refers to the Comment object...
2011 May 28
0
class_inheritable_accessor => class_attribute
I had code class_inheritable_accessor :attrs, :instance_reader => false, :instance_writer => false self.attrs = {} now i want to get rid of class_inheritable_accessor, but class_attribute only supports instance_writer, not instance_reader options and i really don''t want instance reader. Is there any way to do it? -- You received this messag...