Sha256: 05be4cbc47666c5fdbde3492fa02fb789543efdd2eac080cf469145af854f414

Contents?: true

Size: 263 Bytes

Versions: 65

Compression:

Stored size: 263 Bytes

Contents

module Reactor::OptionallySubclassable
  extend ActiveSupport::Concern

  module ClassMethods
    def find_sti_class(type_name)
      begin
        ActiveSupport::Dependencies.constantize(type_name)
      rescue NameError
        self
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
reactor-0.9.5 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.9.4 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.9.2 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.9.1 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.9.0 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.8.3 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.8.2 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.8.1 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.8.0 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.7.1 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.7.0 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.6.2 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.6.1 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.6.0 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.5.3 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.5.2 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.5.1 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.5.0 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.4.7 lib/reactor/models/concerns/optionally_subclassable.rb
reactor-0.4.6 lib/reactor/models/concerns/optionally_subclassable.rb