Module: Idapted::ActsAsReadonly::InstanceMethods

Defined in:
lib/eco_apps/acts_as_readonly.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject

Raises:

  • (ActiveRecord::ReadOnlyRecord)


67
68
69
# File 'lib/eco_apps/acts_as_readonly.rb', line 67

def destroy
  raise ActiveRecord::ReadOnlyRecord
end

#readonly?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'lib/eco_apps/acts_as_readonly.rb', line 63

def readonly?
  true
end