module ApijsAttachment
Created V/27/12/2013 Updated J/18/02/2021
Copyright 2008-2021 | Fabrice Creuzot (luigifab) <code~luigifab~fr> www.luigifab.fr/redmine/apijs
This program is free software, you can redistribute it or modify it under the terms of the GNU General Public License (GPL) as published by the free software foundation, either version 2 of the license, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but without any warranty, without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License (GPL) for more details.
Public Class Methods
included(base)
click to toggle source
# File lib/apijs_attachment.rb, line 20 def self.included(base) base.send(:include, InstanceMethods) base.class_eval do unloadable if Rails::VERSION::MAJOR >= 3 include Rails.application.routes.url_helpers before_create :update_date else include ActionController::UrlWriter before_save :update_date end after_destroy :delete_cache end end