Sha256: 9334f5e8b487bd103992c8711531146d8419a80afd4e2b2671abcb0aee2ae69c

Contents?: true

Size: 252 Bytes

Versions: 19

Compression:

Stored size: 252 Bytes

Contents

module ActionDispatch::Routing
  class Mapper
    # example
    #   iiif_for :image
    def iiif_for(*resources)
      options = resources.extract_options!

      Riiif::Routes.new(self, options.merge(resource: resources.first)).draw
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
riiif-2.6.0 lib/riiif/rails/routes.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/riiif-2.5.0/lib/riiif/rails/routes.rb
riiif-2.5.0 lib/riiif/rails/routes.rb
riiif-2.4.0 lib/riiif/rails/routes.rb
riiif-2.3.0 lib/riiif/rails/routes.rb
riiif-2.2.0 lib/riiif/rails/routes.rb
riiif-2.1.0 lib/riiif/rails/routes.rb
riiif-1.7.1 lib/riiif/rails/routes.rb
riiif-2.0.0 lib/riiif/rails/routes.rb
riiif-2.0.0.beta2 lib/riiif/rails/routes.rb
riiif-2.0.0.beta1 lib/riiif/rails/routes.rb
riiif-1.7.0 lib/riiif/rails/routes.rb
riiif-1.6.0 lib/riiif/rails/routes.rb
riiif-1.5.1 lib/riiif/rails/routes.rb
riiif-1.5.0 lib/riiif/rails/routes.rb
riiif-1.4.4 lib/riiif/rails/routes.rb
riiif-1.4.3 lib/riiif/rails/routes.rb
riiif-1.4.2 lib/riiif/rails/routes.rb
riiif-1.4.1 lib/riiif/rails/routes.rb