У меня есть следующий yml
/config/s3.yml
common: &common
access_key_id: asddasadsadsad
secret_access_key: adsasddasdasdsa+qlSn+dadadada
development:
<<: *common
bucket: XX_dev
test:
<<: *common
bucket: XX_test
production:
<<: *common
bucket: XX_prod
has_attached_file :photo,
:styles => { :thumb => "70x70>" },
:storage => :s3,
:s3_credentials => "#{RAILS_ROOT}/config/s3.yml",
:path => "/assets/users/:id/:style/:basename.:extension",
:bucket => "????How to get this from the YML based on the ENV???",
И я хочу использовать это в скрепке, как мне получить доступ к ведру? Спасибо