Sha256: 7a410899ba072e469eae3dda30ddb847944d0bc51b1a65ab4c1fbd0c80046188
Contents?: true
Size: 497 Bytes
Versions: 5
Compression:
Stored size: 497 Bytes
Contents
module Ecm::CoreInfo class RailsEngine include ActiveModel::Model def self.attribute_names %w(class app config env_config helpers routes initializers) end def self.all ::Rails::Engine.subclasses.map(&:instance).sort_by { |obj| obj.class.name } end def self.count all.count end def self.find(id) all.find { |i| i.class.to_s == id } end def self.first all.first end def self.last all.last end end end
Version data entries
5 entries across 5 versions & 1 rubygems