Class: Bagboy::DataBagTemplatesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/bagboy/data_bag_templates_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#initialize

Constructor Details

This class inherits a constructor from Bagboy::ApplicationController

Instance Method Details

#editObject



12
13
14
# File 'app/controllers/bagboy/data_bag_templates_controller.rb', line 12

def edit
  render :edit
end

#showObject



6
7
8
9
10
# File 'app/controllers/bagboy/data_bag_templates_controller.rb', line 6

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