Module: RedmineS3::AttachmentPatch
- Defined in:
- lib/redmine_s3/attachment_patch.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/redmine_s3/attachment_patch.rb', line 3 def self.included(base) # :nodoc: base.extend(ClassMethods) base.send(:include, InstanceMethods) # Same as typing in the class base.class_eval do unloadable # Send unloadable so it will not be unloaded in development attr_accessor :s3_access_key_id, :s3_secret_acces_key, :s3_bucket, :s3_bucket after_validation :put_to_s3 before_destroy :delete_from_s3 end end |