Class: Cellect::Server::GroupedLoader
- Defined in:
- lib/cellect/server/grouped_loader.rb
Instance Attribute Summary
Attributes inherited from Loader
Instance Method Summary collapse
Methods inherited from Loader
#initialize, #load_data, #reload_data
Constructor Details
This class inherits a constructor from Cellect::Server::Loader
Instance Method Details
#run_load!(set) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/cellect/server/grouped_loader.rb', line 5 def run_load!(set) Cellect::Server.adapter.load_data_for(workflow.name) do |hash| set[hash['group_id']] ||= workflow.set_klass.new set[hash['group_id']].add hash['id'], hash['priority'] end end |