Commit 80dfe40e authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Update controllers method calls

parent 6f6805ed
...@@ -50,7 +50,7 @@ module Projects ...@@ -50,7 +50,7 @@ module Projects
end end
def cycle_analytics def cycle_analytics
@cycle_analytics ||= ::CycleAnalytics.new(project, options(events_params)) @cycle_analytics ||= ::CycleAnalytics::ProjectLevel.new(project: project, options: options(events_params))
end end
def events_params def events_params
......
...@@ -9,7 +9,7 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController ...@@ -9,7 +9,7 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController
before_action :authorize_read_cycle_analytics! before_action :authorize_read_cycle_analytics!
def show def show
@cycle_analytics = ::CycleAnalytics.new(@project, options(cycle_analytics_params)) @cycle_analytics = ::CycleAnalytics::ProjectLevel.new(project: @project, options: options(cycle_analytics_params))
@cycle_analytics_no_data = @cycle_analytics.no_stats? @cycle_analytics_no_data = @cycle_analytics.no_stats?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment