Sha256: a16c98990c2223a481c2fb19f5050059ace00e415719599ae51e6d4cd91ef8ec

Contents?: true

Size: 224 Bytes

Versions: 22

Compression:

Stored size: 224 Bytes

Contents

module Spina
  class ApplicationRecord < ActiveRecord::Base
    self.abstract_class = true
    
    # Remove Spina namespace from partial paths
    def to_partial_path
      super.gsub(/\Aspina\//, "")
    end
    
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spina-2.12.0 app/models/spina/application_record.rb
spina-2.11.0 app/models/spina/application_record.rb
spina-2.10.0 app/models/spina/application_record.rb
spina-2.9.1 app/models/spina/application_record.rb
spina-2.9.0 app/models/spina/application_record.rb
spina-2.8.1 app/models/spina/application_record.rb
spina-2.8.0 app/models/spina/application_record.rb
spina-2.7.0 app/models/spina/application_record.rb
spina-2.6.2 app/models/spina/application_record.rb
spina-2.6.1 app/models/spina/application_record.rb
spina-2.6.0 app/models/spina/application_record.rb
spina-2.5.0 app/models/spina/application_record.rb
spina-2.4.0 app/models/spina/application_record.rb
spina-2.3.5 app/models/spina/application_record.rb
spina-2.3.4 app/models/spina/application_record.rb
spina-2.3.3 app/models/spina/application_record.rb
spina-2.3.2 app/models/spina/application_record.rb
spina-2.3.1 app/models/spina/application_record.rb
spina-2.3.0 app/models/spina/application_record.rb
spina-2.2.0 app/models/spina/application_record.rb