Module: Idapted::ActsAsReadonly::SingletonMethods

Defined in:
lib/eco_apps/acts_as_readonly.rb

Instance Method Summary collapse

Instance Method Details

#delete_all(conditions = nil) ⇒ Object

Raises:

  • (ActiveRecord::ReadOnlyRecord)


53
54
55
# File 'lib/eco_apps/acts_as_readonly.rb', line 53

def delete_all(conditions = nil)
  raise ActiveRecord::ReadOnlyRecord
end

#table_exists?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/eco_apps/acts_as_readonly.rb', line 57

def table_exists?
  connection.table_exists?(self.rails_origin_table_name)
end