custom-template 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,7 +60,7 @@ class <%= controller_class_name %>Controller < ApplicationController
60
60
  #---------#
61
61
  def destroy( id )
62
62
  <%= singular_table_name %> = <%= "#{class_name}.where( id: id, user_id: session[:user_id] ).first" %>
63
- <%= orm_instance.present? %> ? <%= orm_instance.destroy %> : <%= flash[:alert] %> = <%= "\"#{human_name} was successfully deleted.\"" %>
63
+ <%= orm_instance.destroy %> ? flash[:notice] = <%= "\"#{human_name} was successfully deleted.\"" %> : flash[:alert] = <%= "\"#{human_name} was failed deleted.\"" %>
64
64
 
65
65
  redirect_to <%= plural_table_name %>_path
66
66
  end
@@ -1,5 +1,5 @@
1
1
  module Custom
2
2
  module Template
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: