Sha256: 378c2c63a7aeccacbec46cb2d40ed0574c3b1ce73e2d072031bb6bf5a258ad10
Contents?: true
Size: 456 Bytes
Versions: 51
Compression:
Stored size: 456 Bytes
Contents
module Rao module ServiceController::ServiceConcern extend ActiveSupport::Concern included do helper_method :service_class end def service_class unless self.class.respond_to?(:service_class) raise "undefined method `service_class' for #{self.class.name}: Add a service_class method to your controller. Example: def self.service_class; MyAmazingService; end" end self.class.service_class end end end
Version data entries
51 entries across 51 versions & 1 rubygems