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.1.1 app/models/spina/application_record.rb
spina-2.1.0 app/models/spina/application_record.rb