BaseContext
Controllers refactoring with contexts Move commit compare logic to model
This commit is contained in:
parent
3c6daec4b1
commit
3063af5adc
11 changed files with 130 additions and 62 deletions
8
app/contexts/base_context.rb
Normal file
8
app/contexts/base_context.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class BaseContext
|
||||
attr_accessor :project, :current_user, :params
|
||||
|
||||
def initialize(project, user, params)
|
||||
@project, @current_user, @params = project, user, params.dup
|
||||
end
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue