Sha256: 2cc6d5bb8a9bb90e7ef61da8fb8362a2b0b9291b9dc48d2af33fba1f6d8eb5a4

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

require_dependency "bagboy/application_controller"

module Bagboy
  class DataBagTemplatesController < ApplicationController

    def show
      @bag      = @bag_helper.data_bag( params[:bag] )
      @template = Template::find_or_create_by({data_bag_name: @bag.name})
      render :show
    end

    def edit
      render :edit
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bagboy-0.0.1 app/controllers/bagboy/data_bag_templates_controller.rb