Class: Spina::ApplicationRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spina/application_record.rb

Instance Method Summary collapse

Instance Method Details

#to_partial_pathObject

Remove Spina namespace from partial paths



6
7
8
# File 'app/models/spina/application_record.rb', line 6

def to_partial_path
  super.gsub(/\Aspina\//, "")
end