Class: Locomotive::Wagon::RemoteSiteDecorator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/locomotive/wagon/decorators/site_decorator.rb

Instance Method Summary collapse

Instance Method Details

#edited?Boolean

Returns:

  • (Boolean)


72
73
74
# File 'lib/locomotive/wagon/decorators/site_decorator.rb', line 72

def edited?
  (self[:content_version].try(:to_i) || 0) > 0
end