Displaying 2 results from an estimated 2 matches for "instance_reader".
Did you mean:
instance_read
2011 Jan 08
1
Paperclip custom Interpolation in url
Folks,
I have a simple model hierarchy (reduced to example as below)
class Post < ActiveRecord::Base
has_many :comments
end
class Comment < ActiveRecord::Base
belongs_to :post
has_attached_file :photo,
# :url => "/assets/class_cal/<original post
date>/:id/:style/:basename.:extension"
:url =>
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 message...