Sha256: 9ca0dd7799c51aba8e9b0603107f7298e532053a908855cf11a912807430f332
Contents?: true
Size: 481 Bytes
Versions: 31
Compression:
Stored size: 481 Bytes
Contents
module RailsOps module ModelMixins module VirtualModelName extend ActiveSupport::Concern included do class_attribute :virtual_model_name class_attribute :virtual_sti_name end module ClassMethods def model_name virtual_model_name || super end def sti_name virtual_sti_name || super end def find_sti_class(_type_name) self end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems