Sha256: 40bd5421196e18a7cc19ffe491a0fa1901845468988db82ae463129534229b66

Contents?: true

Size: 451 Bytes

Versions: 9

Compression:

Stored size: 451 Bytes

Contents

module PublishMyData
  module Concerns
    module Controllers
      module Resource
        extend ActiveSupport::Concern

        included do

          private

          def render_resource_with_uri(uri)
            resource = PublishMyData::Resource.find(uri)

            respond_with(resource) do |format|
              format.html { render resource.render_params(request) }
            end
          end

        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
publish_my_data-0.0.29 lib/publish_my_data/concerns/controllers/resource.rb
publish_my_data-0.0.28 lib/publish_my_data/concerns/controllers/resource.rb
publish_my_data-0.0.27 lib/publish_my_data/concerns/controllers/resource.rb
publish_my_data-0.0.26 lib/publish_my_data/concerns/controllers/resource.rb
publish_my_data-0.0.25 lib/publish_my_data/concerns/controllers/resource.rb
publish_my_data-0.0.24 lib/publish_my_data/concerns/controllers/resource.rb
publish_my_data-0.0.23 lib/publish_my_data/concerns/controllers/resource.rb
publish_my_data-0.0.22 lib/publish_my_data/concerns/controllers/resource.rb
publish_my_data-0.0.21 lib/publish_my_data/concerns/controllers/resource.rb