civic311_test3 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  3. data/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  4. data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  5. data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  6. data/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  7. data/app/assets/images/.keep +0 -0
  8. data/app/assets/javascripts/admin.coffee +3 -0
  9. data/app/assets/javascripts/application.js +17 -0
  10. data/app/assets/javascripts/bootstrap.js.coffee +4 -0
  11. data/app/assets/javascripts/custom.js +147 -0
  12. data/app/assets/stylesheets/admin.scss +3 -0
  13. data/app/assets/stylesheets/application.css +72 -0
  14. data/app/assets/stylesheets/bootstrap.min.css +5 -0
  15. data/app/assets/stylesheets/bootstrap_and_overrides.css.less +34 -0
  16. data/app/assets/stylesheets/rails_admin.css +69 -0
  17. data/app/controllers/admin_controller.rb +404 -0
  18. data/app/controllers/application_controller.rb +5 -0
  19. data/app/controllers/concerns/.keep +0 -0
  20. data/app/helpers/admin_helper.rb +2 -0
  21. data/app/helpers/application_helper.rb +16 -0
  22. data/app/mailers/.keep +0 -0
  23. data/app/models/.keep +0 -0
  24. data/app/models/acceptance.rb +13 -0
  25. data/app/models/agent.rb +270 -0
  26. data/app/models/agent_change_info.rb +67 -0
  27. data/app/models/agent_designation.rb +12 -0
  28. data/app/models/agent_language.rb +12 -0
  29. data/app/models/agent_specialty.rb +12 -0
  30. data/app/models/agent_ticket.rb +12 -0
  31. data/app/models/agent_zip_code.rb +16 -0
  32. data/app/models/best_use.rb +4 -0
  33. data/app/models/buying_wishlist.rb +33 -0
  34. data/app/models/concerns/.keep +0 -0
  35. data/app/models/connection.rb +13 -0
  36. data/app/models/customer.rb +76 -0
  37. data/app/models/customer_device.rb +248 -0
  38. data/app/models/customer_location_alert.rb +31 -0
  39. data/app/models/delayed_job.rb +6 -0
  40. data/app/models/designation.rb +29 -0
  41. data/app/models/help.rb +6 -0
  42. data/app/models/investing_wishlist.rb +18 -0
  43. data/app/models/investing_wishlist_type.rb +12 -0
  44. data/app/models/investment_type.rb +13 -0
  45. data/app/models/issue.rb +9 -0
  46. data/app/models/language.rb +39 -0
  47. data/app/models/license.rb +31 -0
  48. data/app/models/payment_transaction.rb +12 -0
  49. data/app/models/promotion_code.rb +10 -0
  50. data/app/models/property_type.rb +15 -0
  51. data/app/models/question.rb +6 -0
  52. data/app/models/rating.rb +13 -0
  53. data/app/models/rating_question.rb +28 -0
  54. data/app/models/rating_request.rb +8 -0
  55. data/app/models/renting_wishlist.rb +31 -0
  56. data/app/models/request_showing.rb +14 -0
  57. data/app/models/schema_migration.rb +6 -0
  58. data/app/models/selling_wishlist.rb +28 -0
  59. data/app/models/setting.rb +6 -0
  60. data/app/models/sharing.rb +15 -0
  61. data/app/models/specialty.rb +25 -0
  62. data/app/models/state.rb +21 -0
  63. data/app/models/suggestion.rb +10 -0
  64. data/app/models/user.rb +107 -0
  65. data/app/models/user_history.rb +6 -0
  66. data/app/models/wishlist.rb +17 -0
  67. data/app/views/admin/_form.html.erb +184 -0
  68. data/app/views/admin/_header.html.erb +58 -0
  69. data/app/views/admin/dashboard.html.erb +142 -0
  70. data/app/views/admin/delete.html.erb +0 -0
  71. data/app/views/admin/edit.html.erb +25 -0
  72. data/app/views/admin/export.html.erb +64 -0
  73. data/app/views/admin/index.html.erb +111 -0
  74. data/app/views/admin/new.html.erb +25 -0
  75. data/app/views/admin/new.js.erb +1 -0
  76. data/app/views/admin/show.html.erb +57 -0
  77. data/app/views/admin/test.html.erb +41 -0
  78. data/app/views/kaminari/_first_page.html.erb +11 -0
  79. data/app/views/kaminari/_gap.html.erb +8 -0
  80. data/app/views/kaminari/_last_page.html.erb +11 -0
  81. data/app/views/kaminari/_next_page.html.erb +11 -0
  82. data/app/views/kaminari/_page.html.erb +12 -0
  83. data/app/views/kaminari/_paginator.html.erb +23 -0
  84. data/app/views/kaminari/_prev_page.html.erb +11 -0
  85. data/app/views/layouts/_sidebar.html.erb +10 -0
  86. data/app/views/layouts/application.html.erb +51 -0
  87. data/civic311_test3-0.0.1.gem +0 -0
  88. data/civic311_test3.gemspec +3 -2
  89. data/config/application.rb +26 -0
  90. data/config/boot.rb +3 -0
  91. data/config/database.yml +54 -0
  92. data/config/environment.rb +5 -0
  93. data/config/environments/development.rb +41 -0
  94. data/config/environments/production.rb +79 -0
  95. data/config/environments/test.rb +42 -0
  96. data/config/initializers/assets.rb +11 -0
  97. data/config/initializers/auto_admin.rb +9 -0
  98. data/config/initializers/backtrace_silencers.rb +7 -0
  99. data/config/initializers/cookies_serializer.rb +3 -0
  100. data/config/initializers/filter_parameter_logging.rb +4 -0
  101. data/config/initializers/inflections.rb +16 -0
  102. data/config/initializers/mime_types.rb +4 -0
  103. data/config/initializers/session_store.rb +3 -0
  104. data/config/initializers/wrap_parameters.rb +14 -0
  105. data/config/locales/en.bootstrap.yml +17 -0
  106. data/config/locales/en.yml +28 -0
  107. data/config/routes.rb +71 -0
  108. data/config/secrets.yml +22 -0
  109. data/lib/civic311_test3/version.rb +1 -1
  110. metadata +123 -3
@@ -0,0 +1,111 @@
1
+ <%= render "admin/header" %>
2
+
3
+ <% if @model_name.present? %>
4
+
5
+ <table class='table table-condensed table-striped'>
6
+
7
+ <thead>
8
+ <tr>
9
+ <th><%= check_box_tag "check_all", 'yes', false, :class => "check_all" %></th>
10
+ <% @column_name.each do |cn| %>
11
+
12
+ <th><%= sortable "#{cn}", "#{cn.titleize}" %></th>
13
+
14
+ <% end %>
15
+ <th></th>
16
+ </tr>
17
+ </thead>
18
+
19
+ <tbody>
20
+ <% @model_data.each do |row| %>
21
+
22
+ <tr>
23
+
24
+ <td>
25
+ <%= check_box_tag "row[]", row.id, false, :class => "check_row" %>
26
+ </td>
27
+
28
+ <% @column_name.each do |column| %>
29
+ <td>
30
+
31
+ <% if row["#{column}"].kind_of?(Date) || row["#{column}"].kind_of?(Time)%>
32
+ <%= row["#{column}"].strftime("%B %d, %Y %H:%M") %>
33
+
34
+ <% else %>
35
+ <%= row["#{column}"] %>
36
+
37
+ <% end %>
38
+
39
+ </td>
40
+
41
+ <% end %>
42
+
43
+ <td>
44
+ <% @tbl = params[:param1].present? ? params[:param1] : @temp_table[0][:table_name] %>
45
+
46
+ <%= link_to "", "/admin/#{row["id"]}?name=#{@tbl}", {:class => "pjax glyphicon glyphicon-info-sign", :title => "Info"} %>
47
+
48
+ <%= link_to "", "/admin/#{row["id"]}/edit?name=#{@tbl}", {:class => "pjax glyphicon glyphicon-pencil", :style => "padding-left:7px;", :title => "Edit"} %>
49
+
50
+ <span style="padding-left:7px;"><%= link_to "", "/admin/#{row["id"]}?name=#{@tbl}", {:class => "pjax glyphicon glyphicon-remove", :style => "padding-left:7px;", :confirm => "Are you sure?", :method => "delete", :title => "Delete"} %></span>
51
+ </td>
52
+
53
+ </tr>
54
+
55
+ <% end %>
56
+ </tbody>
57
+
58
+ </table>
59
+
60
+ <% else %>
61
+
62
+ <table class='table table-condensed table-striped'>
63
+
64
+ <thead>
65
+ <tr>
66
+ <% @column_name.each do |cn| %>
67
+ <th><%= cn.titleize %></th>
68
+ <% end %>
69
+ <th></th>
70
+ </tr>
71
+ </thead>
72
+
73
+ <tbody>
74
+ <% @column_data.each do |row| %>
75
+
76
+ <tr>
77
+
78
+ <% row.each do |column| %>
79
+ <td>
80
+ <% if column.kind_of?(Date) || column.kind_of?(Time)%>
81
+ <%= column.strftime("%B %d, %Y %H:%M") %>
82
+ <% else %>
83
+ <% if params[:param1] == "issues" %>
84
+ <%= column %>
85
+ <% else %>
86
+ <%= column %>
87
+ <% end %>
88
+ <% end %>
89
+ </td>
90
+ <% end %>
91
+
92
+ <td>
93
+ <% @tbl = params[:param1].present? ? params[:param1] : @temp_table[0][:table_name] %>
94
+
95
+ <%= link_to "", "/admin/#{row[0]}?name=#{@tbl}", {:class => "pjax glyphicon glyphicon-info-sign", :title => "Info"} %>
96
+
97
+ <%= link_to "", "/admin/#{row[0]}/edit?name=#{@tbl}", {:class => "pjax glyphicon glyphicon-pencil", :style => "padding-left:7px;", :title => "Edit"} %>
98
+
99
+ <span style="padding-left:7px;"><%= link_to "", "/admin/#{row[0]}?name=#{@tbl}", {:class => "pjax glyphicon glyphicon-remove", :style => "padding-left:7px;", :confirm => "Are you sure?", :method => "delete", :title => "Delete"} %></span>
100
+ </td>
101
+
102
+ </tr>
103
+
104
+ <% end %>
105
+ </tbody>
106
+
107
+ </table>
108
+
109
+ <% end %>
110
+
111
+ <%= paginate @column_data %>
@@ -0,0 +1,25 @@
1
+ <br/><br/>
2
+ <h2>New <%= params[:param2].titleize %></h2>
3
+ <ol class="breadcrumb"><li class="active"><a class="pjax" href="/admin/dashboard/">Dashboard</a> / <%= link_to "#{params[:param2].titleize}", root_path(:param1 => "#{params[:param2]}"), :class => "pjax" %> / New</li></ol>
4
+
5
+
6
+ <%= form_for params[:param2], :url => url_for(:controller => 'admin', :action => 'create') do |f| %>
7
+
8
+ <div class="form-group control-group" >
9
+
10
+ <%= render :partial => "admin/form", :locals=>{:f=>f} %>
11
+
12
+ <div class="actions col-sm-10 controls" style="margin-left:20%;" >
13
+ <input class="btn btn-primary size_btn" name="commit" type="submit" value="Save" />
14
+ <a class="btn btn-info size_btn" href="#">Show</a>
15
+ <%= link_to "Back", :back , class: "btn btn-default size_btn" %>
16
+ </div>
17
+
18
+ </div>
19
+
20
+ <% end %>
21
+
22
+ <br/>
23
+
24
+
25
+
@@ -0,0 +1 @@
1
+ $('#content').html("<%= j (render 'form') %>");
@@ -0,0 +1,57 @@
1
+ <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
2
+
3
+ <br/>
4
+ <div class='page-header'>
5
+ <h1>Details for <%= params[:name].titleize %> '<%= params[:id] %>'</h1>
6
+ </div>
7
+
8
+ <ol class="breadcrumb"><li class="false"><a class="pjax" href="/admin/dashboard/">Dashboard</a></li><li class="false"><%= link_to "#{params[:name].titleize}", root_path(:param1 => "#{params[:name]}"), :class => "pjax" %></li><li class="active"><%= params[:id] %></li></ol>
9
+ <ul class='nav nav-tabs'>
10
+ <li title="" rel="" class="icon show_member_link active">
11
+ <%= link_to '<i class="glyphicon glyphicon-info-sign"></i>'.html_safe, "#", :class => "pjax" %>
12
+ </li>
13
+ <li title="" rel="" class="icon edit_member_link ">
14
+ <%= link_to '<i class="glyphicon glyphicon-pencil"></i>'.html_safe, "#", :class => "pjax" %>
15
+ </li>
16
+
17
+ <li title="" rel="" class="icon delete_member_link ">
18
+ <%= link_to '<i class="glyphicon glyphicon-remove"></i>'.html_safe, "#", method: :delete, data: { confirm: 'Are you sure?' }, :class => "pjax" %>
19
+ </li>
20
+
21
+ <li title="" rel="" class="icon show_in_app_member_link ">
22
+ <%= link_to '<i class="glyphicon glyphicon-circle-arrow-left"></i>'.html_safe, "#", :class => "pjax" %>
23
+ </li>
24
+ </ul>
25
+
26
+ <%
27
+ @column_name = []
28
+
29
+ ActiveRecord::Base.connection.columns(params[:name]).each { |c|
30
+ @column_name << c.name}
31
+
32
+ @column_data = ActiveRecord::Base.connection.execute("SELECT * FROM #{params[:name]} where id = '#{params[:id]}'").to_a
33
+
34
+ %>
35
+
36
+
37
+ <div class='fieldset'>
38
+ <h4>
39
+ Basic info
40
+ </h4>
41
+ <dl>
42
+ <% @column_name.zip(@column_data[0]).each do |cname, cvalue| %>
43
+ <dt>
44
+ <span class='label label-info'>
45
+ <%= cname.titleize %>
46
+ </span>
47
+ </dt>
48
+ <dd class='well'>
49
+ <% if cvalue.kind_of?(Date) || cvalue.kind_of?(Time)%>
50
+ <%= cvalue.strftime("%B %d, %Y %H:%M") %>
51
+ <% else %>
52
+ <%= cvalue %>
53
+ <% end %>
54
+ </dd>
55
+ <% end %>
56
+ </dl>
57
+ </div>
@@ -0,0 +1,41 @@
1
+ <!-- Nav tabs
2
+ -->
3
+ <ul class="nav nav-tabs">
4
+ <li class="active">
5
+ <%= link_to "Tab1", "#tab1", html_options = { "data-toggle" => "tab" } %>
6
+ </li>
7
+ <li>
8
+ <%= link_to "Tab2", "#tab2", html_options = { "data-toggle" => "tab" } %>
9
+ </li>
10
+ <li>
11
+ <%= link_to "Tab3", "#tab3", html_options = { "data-toggle" => "tab" } %>
12
+ </li>
13
+ </ul>
14
+ <!-- Tab panes
15
+ -->
16
+ <div class="tab-content">
17
+ <div class="tab-pane active" id="tab1">
18
+ <p>Fetch content</p>
19
+ </div>
20
+ <div class="tab-pane" id="tab2">
21
+ <ul class="nav nav-pills">
22
+ <li class="active">
23
+ <%= link_to 'Overview', "#overview", html_options = { "data-toggle" => "tab"} %>
24
+ </li>
25
+ <li>
26
+ <%= link_to 'Details', "#details", html_options = { "data-toggle" => "tab"} %>
27
+ </li>
28
+ <div class="tab-content">
29
+ <div class="tab-pane active" id="overview">
30
+ <p>Fetch overview</p>
31
+ </div>
32
+ <div class="tab-pane" id="details">
33
+ <p>Fetch details</p>
34
+ </div>
35
+ </div>
36
+ </ul>
37
+ </div>
38
+ <div class="tab-pane" id="tab3">
39
+ <p>Fetch content</p>
40
+ </div>
41
+ </div>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "First" page
2
+ - available local variables
3
+ url: url to the first page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="first">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, :remote => remote %>
11
+ </span>
@@ -0,0 +1,8 @@
1
+ <%# Non-link tag that stands for skipped pages...
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ total_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ -%>
8
+ <span class="page gap"><%= t('views.pagination.truncate').html_safe %></span>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Last" page
2
+ - available local variables
3
+ url: url to the last page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="last">
10
+ <%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, :remote => remote %>
11
+ </span>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Next" page
2
+ - available local variables
3
+ url: url to the next page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="next">
10
+ <%= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, :rel => 'next', :remote => remote %>
11
+ </span>
@@ -0,0 +1,12 @@
1
+ <%# Link showing page number
2
+ - available local variables
3
+ page: a page object for "this" page
4
+ url: url to this page
5
+ current_page: a page object for the currently displayed page
6
+ total_pages: total number of pages
7
+ per_page: number of items to fetch per page
8
+ remote: data-remote
9
+ -%>
10
+ <span class="page<%= ' current' if page.current? %>">
11
+ <%= link_to_unless page.current?, page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
+ </span>
@@ -0,0 +1,23 @@
1
+ <%# The container tag
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ total_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ paginator: the paginator that renders the pagination tags inside
8
+ -%>
9
+ <%= paginator.render do -%>
10
+ <nav class="pagination">
11
+ <%#= first_page_tag unless current_page.first? %>
12
+ <%= prev_page_tag unless current_page.first? %>
13
+ <% each_page do |page| -%>
14
+ <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
15
+ <%= page_tag page %>
16
+ <% elsif !page.was_truncated? -%>
17
+ <%= gap_tag %>
18
+ <% end -%>
19
+ <% end -%>
20
+ <%= next_page_tag unless current_page.last? %>
21
+ <%#= last_page_tag unless current_page.last? %>
22
+ </nav>
23
+ <% end -%>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Previous" page
2
+ - available local variables
3
+ url: url to the previous page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="prev">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, :rel => 'prev', :remote => remote %>
11
+ </span>
@@ -0,0 +1,10 @@
1
+ <div class="col-sm-3 col-md-2 col-lg-2 sidebar-nav">
2
+
3
+ <ul class='nav nav-pills nav-stacked'>
4
+ <li class='dropdown-header' style="padding-top:15px;padding-left:15px;font-weight:bold;">Navigation</li>
5
+ <% @temp_table.each do |tnm| %>
6
+ <li><%= link_to "#{tnm[:table_name].titleize}", root_path(:param1 => "#{tnm[:table_name]}") %></li>
7
+ <% end %>
8
+ </ul>
9
+
10
+ </div>
@@ -0,0 +1,51 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>AgentoDemo</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+
10
+ </head>
11
+ <body class="rails_admin">
12
+
13
+ <nav class="navbar navbar-default navbar-fixed-top">
14
+ <div class="container-fluid">
15
+ <div class="navbar-header">
16
+ <button type="button" data-toggle="collapse" data-target="#secondary-navigation" class="navbar-toggle collapsed">
17
+ <span class="sr-only">Toggle navigation</span>
18
+ <span class="icon-bar"></span>
19
+ <span class="icon-bar"></span>
20
+ <span class="icon-bar"></span>
21
+ </button>
22
+ <a href="#" class="navbar-brand pjax">Agento<small>Admin</small></a>
23
+ </div>
24
+ <div id="secondary-navigation" class="collapse navbar-collapse">
25
+ <ul class="nav navbar-nav navbar-right root_links">
26
+ <li class="dashboard_root_link"><a href="/admin/dashboard/" class="pjax">Dashboard</a></li>
27
+ <li><a href="/admin/dashboard/">Home</a></li>
28
+ <li><a href="#"><span class="label label-danger">Log out</span></a></li>
29
+ </ul>
30
+ </div>
31
+ </div>
32
+ </nav>
33
+
34
+ <div class="container-fluid">
35
+ <div class="row">
36
+
37
+ <%= render "layouts/sidebar" %>
38
+
39
+ <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2" id="modal_page_content">
40
+
41
+ <%= yield %>
42
+
43
+ </div>
44
+
45
+ </div>
46
+ </div>
47
+
48
+ </body>
49
+
50
+ </html>
51
+
Binary file
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Civic311Test3::VERSION
9
9
  spec.authors = ["pratik963"]
10
10
  spec.email = ["pratik.spaceo@gmail.com"]
11
- spec.summary = "summary"
12
- spec.description = "description"
11
+ spec.summary = ["summary"]
12
+ spec.description = ["description"]
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "kaminari", "~> 0.16.3"
23
24
  end
@@ -0,0 +1,26 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+ require 'csv'
5
+ # Require the gems listed in Gemfile, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(*Rails.groups)
8
+
9
+ module AgentoDemo
10
+ class Application < Rails::Application
11
+ # Settings in config/environments/* take precedence over those specified here.
12
+ # Application configuration should go into files in config/initializers
13
+ # -- all .rb files in that directory are automatically loaded.
14
+
15
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
16
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
17
+ # config.time_zone = 'Central Time (US & Canada)'
18
+
19
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
20
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
21
+ # config.i18n.default_locale = :de
22
+
23
+ # Do not swallow errors in after_commit/after_rollback callbacks.
24
+ config.active_record.raise_in_transactional_callbacks = true
25
+ end
26
+ end