Skip to content

Commit

Permalink
Safe lambda for Ruby 1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gabynaiman committed Oct 4, 2016
1 parent 4d55508 commit 98433d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/minitest_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Posts < Rasti::DB::Collection
many_to_many :categories
one_to_many :comments

query :created_by, -> (user_id) { where user_id: user_id }
query :created_by, ->(user_id) { where user_id: user_id }

query :entitled do |title|
where title: title
Expand Down

0 comments on commit 98433d8

Please sign in to comment.