Sha256: 10f438b50b3d3f04211c18c6c94d073c88650d07f96c2ed0214e54e74afc8732

Contents?: true

Size: 352 Bytes

Versions: 61

Compression:

Stored size: 352 Bytes

Contents

module ActionDispatch::Routing
  class Mapper
    def brightcontent_resources(&block)
      define_user_resources(block) if block_given?
      mount Brightcontent::Engine => Brightcontent.path
    end

    private

    def define_user_resources(block)
      Brightcontent::Engine.routes.draw do
        instance_eval &block
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
brightcontent-core-2.6.0 lib/brightcontent/rails/routes.rb
brightcontent-core-2.5.1 lib/brightcontent/rails/routes.rb
brightcontent-core-2.5.0 lib/brightcontent/rails/routes.rb
brightcontent-core-2.4.6 lib/brightcontent/rails/routes.rb
brightcontent-core-2.4.5 lib/brightcontent/rails/routes.rb
brightcontent-core-2.4.4 lib/brightcontent/rails/routes.rb
brightcontent-core-2.4.3 lib/brightcontent/rails/routes.rb
brightcontent-core-2.4.2 lib/brightcontent/rails/routes.rb
brightcontent-core-2.4.1 lib/brightcontent/rails/routes.rb
brightcontent-core-2.4.0 lib/brightcontent/rails/routes.rb
brightcontent-core-2.3.4 lib/brightcontent/rails/routes.rb
brightcontent-core-2.3.3 lib/brightcontent/rails/routes.rb
brightcontent-core-2.3.2 lib/brightcontent/rails/routes.rb
brightcontent-core-2.3.1 lib/brightcontent/rails/routes.rb
brightcontent-core-2.3.0 lib/brightcontent/rails/routes.rb
brightcontent-core-2.2.2 lib/brightcontent/rails/routes.rb
brightcontent-core-2.2.1 lib/brightcontent/rails/routes.rb
brightcontent-core-2.2.0 lib/brightcontent/rails/routes.rb
brightcontent-core-2.1.5 lib/brightcontent/rails/routes.rb
brightcontent-core-2.1.4 lib/brightcontent/rails/routes.rb