Class: Netzke::Basepack::DataAdapters::ActiveRecordAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/netzke/draper/basepack_ext/data_adapters/active_record_adapter.rb

Instance Method Summary collapse

Instance Method Details

#find_record_with_decoration(id) ⇒ Object

Decorates the records retrieved by find_record



11
12
13
# File 'lib/netzke/draper/basepack_ext/data_adapters/active_record_adapter.rb', line 11

def find_record_with_decoration(id)
  decorate(find_record_without_decoration(id))
end

#get_records_with_decoration(params, columns = []) ⇒ Object

Decorates the records retrieved by get_records



5
6
7
# File 'lib/netzke/draper/basepack_ext/data_adapters/active_record_adapter.rb', line 5

def get_records_with_decoration(params, columns=[])
  decorate(get_records_without_decoration(params, columns))
end