Class: RedmineRest::Models::ModelConfigurator
- Inherits:
-
Object
- Object
- RedmineRest::Models::ModelConfigurator
- Defined in:
- lib/redmine_rest/models.rb
Overview
Class for self-methods. Dont use it outside this module
Instance Method Summary collapse
Instance Method Details
#configure_models(params) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/redmine_rest/models.rb', line 36 def configure_models(params) site = params[:site] || Issue.site user = user_for_models(params) password = params.key?(:password) ? params[:password] : Issue.password change_models_params site: site, user: user, password: password end |