Sha256: 2e05107886a300f4efaa73b1ca8d987742388885b29b2739a26ebb33fd137a04

Contents?: true

Size: 366 Bytes

Versions: 16

Compression:

Stored size: 366 Bytes

Contents

module Grape
  class API
    module Extensions
      module SortExtension
        def sort(value)
          route_setting :sort, sort: value
          value
        end
      end
    end
  end
end

if defined? Grape::API::Instance
  Grape::API::Instance.extend Grape::API::Extensions::SortExtension
else
  Grape::API.extend Grape::API::Extensions::SortExtension
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
slack-ruby-bot-server-2.1.1 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-2.1.0 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-2.0.1 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-1.2.1 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-1.2.0 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-1.1.0 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-1.0.0 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-0.12.3 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-0.12.2 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-0.12.1 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-0.12.0 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-0.11.1 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-0.11.0 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-0.10.0 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-0.9.0 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb
slack-ruby-bot-server-0.8.3 lib/slack-ruby-bot-server/ext/grape/sort_extension.rb