Class: Moon::Action::Models::Finder

Inherits:
Object
  • Object
show all
Defined in:
lib/moon/action/models/finder.rb

Overview

This action takes parameter and session keys that ends with ‘_id’ out of the context and searches the fitting model for it. The result is assign to the context models.

Instance Method Summary collapse

Instance Method Details

#perform(context) ⇒ Object



6
7
8
9
10
11
# File 'lib/moon/action/models/finder.rb', line 6

def perform(context)
  @context = context
  find_session_models
  find_parameter_models
  nil
end