# Expands the lines which load the assets
config.assets.debug = true
end
-y = YAML.load(open(Rails.root + 'config/aws.yaml').read)
require 'local_picture'
PictureIO.setup do |config|
PictureIO.setup do |config|
config.original_picture_io = PictureIO::S3Picture.new 'pettanr-original'
config.resource_picture_io = PictureIO::S3Picture.new 'pettanr-stable'
+ config.system_picture_io = PictureIO::S3Picture.new 'pettanr-system'
end
resources :lisences, only: [:index]
resources :original_lisences
resources :common_lisences
+ resources :system_pictures, except: [:new, :edit]
# The priority is based upon order of creation:
# first created -> highest priority.
match 'help/(:action)', :controller => 'help'
controller 'system' do
get 'start'
+ get 'index'
# match 'start', :to => 'system#start'
end
class PictureIO
@@resource_picture_io #= LocalPicture.new
@@original_picture_io #= LocalPicture.new Rails.root + 'original'
+ @@system_picture_io #= LocalPicture.new Rails.root + 'system'
def self.original_picture_io
@@original_picture_io
@@resource_picture_io = pclass
end
+ def self.system_picture_io
+ @@system_picture_io
+ end
+
+ def self.system_picture_io=(pclass)
+ @@system_picture_io = pclass
+ end
+
def self.setup
yield self
end