Sha256: 72e2421ab7fafddc2978a26c16797e8db7b3d8a99aa4afbd27b5d03e3a4e7f39

Contents?: true

Size: 154 Bytes

Versions: 39

Compression:

Stored size: 154 Bytes

Contents

module Tramway::Admin::TramwayModelHelper
  def tramway_model?(model_class)
    model_class.ancestors.include? Tramway::Core::ApplicationRecord
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
tramway-admin-5.0 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1.2.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1.2 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1.1.5 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1.1.4 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1.1.3 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1.1.2 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1.1.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1.0.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.0.1.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.0.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.0.0.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-4.0 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-3.0.1.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-3.0.1 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-3.0 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-2.1.3.3 lib/tramway/admin/tramway_model_helper.rb
tramway-admin-2.1.3.2 lib/tramway/admin/tramway_model_helper.rb