Skip to content

Commit 9770411

Browse files
authored
Merge pull request #89 from dblock/grape-1.1
Fix: compatibility with Grape 1.2.x.
2 parents 79313f7 + b4f0123 commit 9770411

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#### 0.8.3 (Next)
44

5+
* [#88](https://github.com/slack-ruby/slack-ruby-bot-server/issues/88): Fix: compatibility with Grape 1.2.x - [@dblock](https://github.com/dblock).
56
* Your contribution here.
67

78
#### 0.8.2 (2018/10/11)
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
module Grape
22
class API
3-
def self.sort(value)
4-
route_setting :sort, sort: value
5-
value
3+
module Extensions
4+
module SortExtension
5+
def sort(value)
6+
route_setting :sort, sort: value
7+
value
8+
end
9+
end
610
end
711
end
812
end
13+
14+
if defined? Grape::API::Instance
15+
Grape::API::Instance.extend Grape::API::Extensions::SortExtension
16+
else
17+
Grape::API.extend Grape::API::Extensions::SortExtension
18+
end

0 commit comments

Comments
 (0)