Sha256: ee0fcaf357034c68a57067aa4d87d374380f0478f119379a9126c1503201d36a

Contents?: true

Size: 420 Bytes

Versions: 62

Compression:

Stored size: 420 Bytes

Contents

module Workarea
  module StyleGuides
    def index
    end

    def show
      module_path = self.class.parent.name.underscore
      category = "#{module_path}/style_guides/#{params[:category]}"

      if lookup_context.exists?(params[:id], [category], true)
        @style_guide_partial = "#{category}/#{params[:id]}"
      else
        raise ActionController::RoutingError.new('Not Found')
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.15 app/controllers/workarea/style_guides.rb
workarea-core-3.4.36 app/controllers/workarea/style_guides.rb
workarea-core-3.5.14 app/controllers/workarea/style_guides.rb
workarea-core-3.4.35 app/controllers/workarea/style_guides.rb
workarea-core-3.5.13 app/controllers/workarea/style_guides.rb
workarea-core-3.4.34 app/controllers/workarea/style_guides.rb
workarea-core-3.5.12 app/controllers/workarea/style_guides.rb
workarea-core-3.4.33 app/controllers/workarea/style_guides.rb
workarea-core-3.5.11 app/controllers/workarea/style_guides.rb
workarea-core-3.5.10 app/controllers/workarea/style_guides.rb
workarea-core-3.4.32 app/controllers/workarea/style_guides.rb
workarea-core-3.5.9 app/controllers/workarea/style_guides.rb
workarea-core-3.4.31 app/controllers/workarea/style_guides.rb
workarea-core-3.5.8 app/controllers/workarea/style_guides.rb
workarea-core-3.4.30 app/controllers/workarea/style_guides.rb
workarea-core-3.5.7 app/controllers/workarea/style_guides.rb
workarea-core-3.4.29 app/controllers/workarea/style_guides.rb
workarea-core-3.5.6 app/controllers/workarea/style_guides.rb
workarea-core-3.4.28 app/controllers/workarea/style_guides.rb
workarea-core-3.5.5 app/controllers/workarea/style_guides.rb