better_record 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7611c995b9c7df9d5c53165338d26b7924eab2f1aa830a8629e7ac1c5a9a57cb
4
- data.tar.gz: 0b88ed9103592bf0bcd5f1856c5f4d9cb00b96f01198712e6cbcaceba2dfc7dd
3
+ metadata.gz: 9c6f49d0f1e3617f29131726f1267640427a3e4d83f4f9fe6cc11fe5af848d6a
4
+ data.tar.gz: f024b00c73a0da6a703da2c200e29ab094a3ac10c32432647d67ad7bc5260c5b
5
5
  SHA512:
6
- metadata.gz: e33502dbccbd116240f43b2dde3702b894b7093410573286caad8fe902c09064c05c070ce98a328234dd5cdf04539e00d45d494188ed567229510c88965f89e7
7
- data.tar.gz: ee3c65d78a60f0755addaa5570f7a687b6c08baad7b845562acf445a4f1bfe197deb892bda6c2318cdf7f9c03645af82fb0a5cc24b672065078151fe3603a2c9
6
+ metadata.gz: ec2e09dce160c090af97c58eaf64611581fabe77591553f8eacd92876087127b71c825bfc695aab8947657c90a5c0c376de867bef683ce91bee835919ed21f4d
7
+ data.tar.gz: 076274fedd4d1b2ae295b77c4fb6b99d74417fbaa68a630e69322523bca7b78b01bc179ef5966f5b7458346c73fff710418785d78a5b92cb854e56de549098ee
@@ -1,6 +1,16 @@
1
1
  module BetterRecord
2
2
  class ApplicationController < ActionController::Base
3
+ # == Modules ============================================================
4
+
5
+ # == Class Methods ======================================================
6
+
7
+ # == Pre/Post Flight Checks =============================================
3
8
  protect_from_forgery with: :exception
4
9
  layout BetterRecord.layout_template.presence || 'better_record/application'
10
+
11
+ # == Actions ============================================================
12
+
13
+ # == Cleanup ============================================================
14
+
5
15
  end
6
16
  end
@@ -2,18 +2,24 @@ require_dependency "better_record/application_controller"
2
2
 
3
3
  module BetterRecord
4
4
  class TableSizesController < ApplicationController
5
+ # == Modules ============================================================
6
+
7
+ # == Class Methods ======================================================
8
+
9
+ # == Pre/Post Flight Checks =============================================
5
10
  before_action :set_table_size, only: [:show]
6
11
 
7
- # GET /table_sizes
12
+ # == Actions ============================================================
8
13
  def index
9
14
  TableSize.reload_data if Boolean.parse(params[:reload])
10
15
  @table_sizes = TableSize.all
11
16
  end
12
17
 
13
- # GET /table_sizes/1
14
18
  def show
15
19
  end
16
20
 
21
+ # == Cleanup ============================================================
22
+
17
23
  private
18
24
  # Use callbacks to share common setup or constraints between actions.
19
25
  def set_table_size
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BetterRecord
4
- VERSION = '0.12.2'
4
+ VERSION = '0.12.3'
5
5
  end
@@ -0,0 +1,22 @@
1
+ <% if namespaced? -%>
2
+ require_dependency "<%= namespaced_path %>/application_controller"
3
+
4
+ <% end -%>
5
+ <% module_namespacing do -%>
6
+ class <%= class_name %>Controller < ApplicationController
7
+ # == Modules ============================================================
8
+
9
+ # == Class Methods ======================================================
10
+
11
+ # == Pre/Post Flight Checks =============================================
12
+
13
+ # == Actions ============================================================
14
+ <% actions.each do |action| -%>
15
+ def <%= action %>
16
+ end
17
+
18
+ <% end -%>
19
+ # == Cleanup ============================================================
20
+
21
+ end
22
+ <% end -%>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sampson Crowley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-14 00:00:00.000000000 Z
11
+ date: 2018-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -314,6 +314,7 @@ files:
314
314
  - lib/generators/better_record/setup/templates/ruby-version
315
315
  - lib/templates/active_record/model/model.rb
316
316
  - lib/templates/migration/templates/create_table_migration.rb
317
+ - lib/templates/rails/controller/controller.rb
317
318
  - lib/templates/rspec/model/model_spec.rb
318
319
  homepage: https://github.com/SampsonCrowley/multi_app_active_record
319
320
  licenses:
@@ -335,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
336
  version: '0'
336
337
  requirements: []
337
338
  rubyforge_project:
338
- rubygems_version: 2.7.7
339
+ rubygems_version: 2.7.6
339
340
  signing_key:
340
341
  specification_version: 4
341
342
  summary: Fix functions that are lacking in Active record to be compatible with multi-app