Module: ActiveRecord::Ghosts::GhostRecord
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/activerecord/ghosts/ghost_record.rb
Instance Method Summary collapse
Instance Method Details
#ghost? ⇒ Boolean
12 13 14 |
# File 'lib/activerecord/ghosts/ghost_record.rb', line 12 def ghost? !!_ghost end |
#inspect ⇒ Object
16 17 18 19 |
# File 'lib/activerecord/ghosts/ghost_record.rb', line 16 def inspect base = super ghost? ? base.sub("#<", "#<ghost ") : base end |