I upgrade my working application to 1.9.2, but I can not find the answer to the following:
I create an object like this in my controller:
@asset = Asset.new(params)
and then in my model use lambda to dynamically create such styles:
has_attached_file :asset, :styles => lambda { |attachment| attachment.instance.choose_styles}
Then I check the specific value that was in my parameters:
def choose_styles if self.item_name == 'Car' { :small => ["200x200>"], :medium => ["400x400>"], :large => ["700x700>"], :full_screen => ["1000x700>"] } else ........ end
Problem: item_name is nil in 1.9.2 until it is done, and then appears to be set from the parameters. It all works with switching to 1.8.7
Can anyone see to help me?
thanks Rick
source share