Skip to content

Commit

Permalink
Fix circular references in query classes
Browse files Browse the repository at this point in the history
Fixes #120
  • Loading branch information
jnv committed Jul 10, 2015
1 parent e6e8981 commit f2f931a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sirius/faculty_semester_query.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class FacultySemesterQuery

def apply(resource, faculty_semester: faculty_semester, **rest)
def apply(resource, faculty_semester:, **rest)
query = "course.faculty==#{faculty_semester.faculty};semester==#{faculty_semester.code}"
resource.where(query)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/sirius/semester_period_dates_query.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class SemesterPeriodDatesQuery

def apply(resource, faculty_semester: faculty_semester, **rest)
def apply(resource, faculty_semester:, **rest)
query = "startDate>=#{faculty_semester.starts_at};endDate<=#{faculty_semester.ends_at}"
resource.where(query)
end
Expand Down

0 comments on commit f2f931a

Please sign in to comment.