Sha256: 3ce64221bd60bb196764bcc91f0b370941bbefffed6fe9fe71cc28113c84cecb
Contents?: true
Size: 993 Bytes
Versions: 1
Compression:
Stored size: 993 Bytes
Contents
require "effective_assets/engine" require 'carrierwave' require 'delayed_job_active_record' require 'migrant' # Required for rspec to run properly module EffectiveAssets # The following are all valid config keys mattr_accessor :assets_table_name mattr_accessor :attachments_table_name mattr_accessor :uploader mattr_accessor :aws_bucket mattr_accessor :aws_access_key_id mattr_accessor :aws_secret_access_key mattr_accessor :aws_upload_path # This directory is where the flash s3 uploader first places files mattr_accessor :aws_final_path # We then authenticate and use Fog to copy the object from upload_path to final_path mattr_accessor :aws_acl mattr_accessor :authorization_method def self.setup yield self end def self.authorized?(controller, action, resource) raise ActiveResource::UnauthorizedAccess.new('') unless (controller || self).instance_exec(controller, action, resource, &EffectiveAssets.authorization_method) true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
effective_assets-0.1 | lib/effective_assets.rb |