easy_reports 0.0.22 → 0.0.24

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.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +21 -21
  3. data/Gemfile +19 -19
  4. data/MIT-LICENSE +20 -20
  5. data/README.md +31 -31
  6. data/Rakefile +10 -10
  7. data/app/assets/javascripts/application.js +10 -10
  8. data/app/assets/javascripts/bootstrap.js +3 -3
  9. data/app/assets/javascripts/easy_reports/application.js +17 -16
  10. data/app/assets/javascripts/easy_reports/database_configs.js +2 -2
  11. data/app/assets/javascripts/easy_reports/reports.js +2 -2
  12. data/app/assets/stylesheets/application.css +8 -8
  13. data/app/assets/stylesheets/easy_reports/application.css +17 -16
  14. data/app/assets/stylesheets/easy_reports/bootstrap_and_overrides.css.less +29 -29
  15. data/app/assets/stylesheets/easy_reports/dashboard/dashboard_content.css +0 -0
  16. data/app/assets/stylesheets/easy_reports/dashboard/sidebar.css +135 -0
  17. data/app/assets/stylesheets/easy_reports/database_configs.css +4 -4
  18. data/app/assets/stylesheets/easy_reports/reports.css +4 -4
  19. data/app/controllers/easy_reports/application_controller.rb +4 -4
  20. data/app/controllers/easy_reports/dashboard_controller.rb +17 -0
  21. data/app/controllers/easy_reports/database_configs_controller.rb +53 -53
  22. data/app/controllers/easy_reports/reports_controller.rb +56 -57
  23. data/app/helpers/easy_reports/application_helper.rb +4 -4
  24. data/app/helpers/easy_reports/database_configs_helper.rb +4 -4
  25. data/app/helpers/easy_reports/reports_helper.rb +4 -4
  26. data/app/models/easy_reports/database_config.rb +4 -4
  27. data/app/models/easy_reports/report.rb +4 -4
  28. data/app/services/easy_reports/database_mediator.rb +36 -18
  29. data/app/views/easy_reports/dashboard/show.html.slim +3 -0
  30. data/app/views/easy_reports/database_configs/_form.html.slim +33 -33
  31. data/app/views/easy_reports/database_configs/edit.html.slim +8 -8
  32. data/app/views/easy_reports/database_configs/index.html.slim +35 -35
  33. data/app/views/easy_reports/database_configs/new.html.slim +5 -5
  34. data/app/views/easy_reports/database_configs/show.html.slim +27 -27
  35. data/app/views/easy_reports/reports/_form.html.slim +17 -15
  36. data/app/views/easy_reports/reports/edit.html.slim +8 -8
  37. data/app/views/easy_reports/reports/index.html.slim +26 -26
  38. data/app/views/easy_reports/reports/new.html.slim +5 -5
  39. data/app/views/easy_reports/reports/show.html.slim +12 -12
  40. data/app/views/layouts/easy_reports/application.html.slim +15 -0
  41. data/app/views/shared/_header.html.slim +60 -0
  42. data/app/views/shared/_sidebar.html.slim +58 -0
  43. data/bin/rails +12 -12
  44. data/config/locales/en.bootstrap.yml +23 -23
  45. data/config/routes.rb +8 -8
  46. data/db/migrate/20141207141745_create_easy_reports_reports.rb +10 -10
  47. data/db/migrate/20141213173509_create_easy_reports_database_configs.rb +16 -16
  48. data/easy_reports.gemspec +36 -35
  49. data/lib/easy_reports.rb +13 -11
  50. data/lib/easy_reports/engine.rb +5 -5
  51. data/lib/easy_reports/version.rb +3 -3
  52. data/lib/tasks/easy_reports_tasks.rake +4 -4
  53. data/test/controllers/easy_reports/database_configs_controller_test.rb +51 -51
  54. data/test/controllers/easy_reports/reports_controller_test.rb +51 -51
  55. data/test/dummy/Gemfile +16 -16
  56. data/test/dummy/Gemfile.lock +129 -129
  57. data/test/dummy/Rakefile +6 -6
  58. data/test/dummy/app/assets/javascripts/application.js +13 -13
  59. data/test/dummy/app/assets/javascripts/bootstrap.js +4 -4
  60. data/test/dummy/app/assets/stylesheets/application.css +15 -15
  61. data/test/dummy/app/assets/stylesheets/bootstrap_and_overrides.css.less +29 -29
  62. data/test/dummy/app/controllers/application_controller.rb +5 -5
  63. data/test/dummy/app/helpers/application_helper.rb +2 -2
  64. data/test/dummy/app/views/layouts/application.html.erb +14 -14
  65. data/test/dummy/bin/bundle +3 -3
  66. data/test/dummy/bin/rails +4 -4
  67. data/test/dummy/bin/rake +4 -4
  68. data/test/dummy/config.ru +4 -4
  69. data/test/dummy/config/application.rb +23 -23
  70. data/test/dummy/config/boot.rb +5 -5
  71. data/test/dummy/config/database.yml +25 -25
  72. data/test/dummy/config/environment.rb +5 -5
  73. data/test/dummy/config/environments/development.rb +37 -37
  74. data/test/dummy/config/environments/production.rb +82 -82
  75. data/test/dummy/config/environments/test.rb +39 -39
  76. data/test/dummy/config/initializers/assets.rb +8 -8
  77. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -7
  78. data/test/dummy/config/initializers/cookies_serializer.rb +2 -2
  79. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -4
  80. data/test/dummy/config/initializers/inflections.rb +16 -16
  81. data/test/dummy/config/initializers/mime_types.rb +4 -4
  82. data/test/dummy/config/initializers/session_store.rb +3 -3
  83. data/test/dummy/config/initializers/wrap_parameters.rb +14 -14
  84. data/test/dummy/config/locales/en.bootstrap.yml +23 -23
  85. data/test/dummy/config/locales/en.yml +23 -23
  86. data/test/dummy/config/routes.rb +4 -4
  87. data/test/dummy/config/secrets.yml +22 -22
  88. data/test/dummy/db/migrate/20141214161417_create_easy_reports_reports.easy_reports.rb +11 -11
  89. data/test/dummy/db/migrate/20141214161418_create_easy_reports_database_configs.easy_reports.rb +17 -17
  90. data/test/dummy/public/404.html +67 -67
  91. data/test/dummy/public/422.html +67 -67
  92. data/test/dummy/public/500.html +66 -66
  93. data/test/fixtures/easy_reports/database_configs.yml +19 -19
  94. data/test/fixtures/easy_reports/reports.yml +9 -9
  95. data/test/helpers/easy_reports/database_configs_helper_test.rb +6 -6
  96. data/test/helpers/easy_reports/reports_helper_test.rb +6 -6
  97. data/test/models/easy_reports/database_config_test.rb +9 -9
  98. data/test/models/easy_reports/report_test.rb +9 -9
  99. metadata +24 -5
  100. data/app/assets/stylesheets/scaffold.css +0 -56
  101. data/app/views/layouts/easy_reports/application.html.erb +0 -14
data/test/dummy/Gemfile CHANGED
@@ -1,16 +1,16 @@
1
- # A sample Gemfile
2
- source "https://rubygems.org"
3
-
4
- gem 'sqlite3'
5
- gem 'easy_reports', path: '../..'
6
- gem 'slim'
7
- gem 'thin'
8
-
9
- # gem 'pg'
10
- # gem 'therubyracer'
11
- # gem 'less-rails'
12
- # gem 'twitter-bootstrap-rails'
13
- # gem 'jquery-rails'
14
- # gem 'sequel'
15
-
16
- # gem "rails"
1
+ # A sample Gemfile
2
+ source "https://rubygems.org"
3
+
4
+ gem 'sqlite3'
5
+ gem 'easy_reports', path: '../..'
6
+ # gem 'slim'
7
+ gem 'thin'
8
+
9
+ # gem 'pg'
10
+ # gem 'therubyracer'
11
+ # gem 'less-rails'
12
+ # gem 'twitter-bootstrap-rails'
13
+ # gem 'jquery-rails'
14
+ # gem 'sequel'
15
+
16
+ # gem "rails"
@@ -1,129 +1,129 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- easy_reports (0.0.21)
5
- jquery-rails
6
- pg
7
- rails (~> 4.1.8)
8
- sequel
9
- slim
10
- twitter-bootstrap-rails
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- actionmailer (4.1.8)
16
- actionpack (= 4.1.8)
17
- actionview (= 4.1.8)
18
- mail (~> 2.5, >= 2.5.4)
19
- actionpack (4.1.8)
20
- actionview (= 4.1.8)
21
- activesupport (= 4.1.8)
22
- rack (~> 1.5.2)
23
- rack-test (~> 0.6.2)
24
- actionview (4.1.8)
25
- activesupport (= 4.1.8)
26
- builder (~> 3.1)
27
- erubis (~> 2.7.0)
28
- activemodel (4.1.8)
29
- activesupport (= 4.1.8)
30
- builder (~> 3.1)
31
- activerecord (4.1.8)
32
- activemodel (= 4.1.8)
33
- activesupport (= 4.1.8)
34
- arel (~> 5.0.0)
35
- activesupport (4.1.8)
36
- i18n (~> 0.6, >= 0.6.9)
37
- json (~> 1.7, >= 1.7.7)
38
- minitest (~> 5.1)
39
- thread_safe (~> 0.1)
40
- tzinfo (~> 1.1)
41
- arel (5.0.1.20140414130214)
42
- builder (3.2.2)
43
- commonjs (0.2.7)
44
- daemons (1.1.9)
45
- erubis (2.7.0)
46
- eventmachine (1.0.3)
47
- execjs (2.2.2)
48
- hike (1.2.3)
49
- i18n (0.6.11)
50
- jquery-rails (3.1.2)
51
- railties (>= 3.0, < 5.0)
52
- thor (>= 0.14, < 2.0)
53
- json (1.8.1)
54
- less (2.6.0)
55
- commonjs (~> 0.2.7)
56
- less-rails (2.6.0)
57
- actionpack (>= 3.1)
58
- less (~> 2.6.0)
59
- libv8 (3.16.14.7)
60
- mail (2.6.3)
61
- mime-types (>= 1.16, < 3)
62
- mime-types (2.4.3)
63
- minitest (5.4.3)
64
- multi_json (1.10.1)
65
- pg (0.17.1)
66
- rack (1.5.2)
67
- rack-test (0.6.2)
68
- rack (>= 1.0)
69
- rails (4.1.8)
70
- actionmailer (= 4.1.8)
71
- actionpack (= 4.1.8)
72
- actionview (= 4.1.8)
73
- activemodel (= 4.1.8)
74
- activerecord (= 4.1.8)
75
- activesupport (= 4.1.8)
76
- bundler (>= 1.3.0, < 2.0)
77
- railties (= 4.1.8)
78
- sprockets-rails (~> 2.0)
79
- railties (4.1.8)
80
- actionpack (= 4.1.8)
81
- activesupport (= 4.1.8)
82
- rake (>= 0.8.7)
83
- thor (>= 0.18.1, < 2.0)
84
- rake (10.4.2)
85
- ref (1.0.5)
86
- sequel (4.17.0)
87
- slim (2.1.0)
88
- temple (~> 0.6.9)
89
- tilt (>= 1.3.3, < 2.1)
90
- sprockets (2.12.3)
91
- hike (~> 1.2)
92
- multi_json (~> 1.0)
93
- rack (~> 1.0)
94
- tilt (~> 1.1, != 1.3.0)
95
- sprockets-rails (2.2.2)
96
- actionpack (>= 3.0)
97
- activesupport (>= 3.0)
98
- sprockets (>= 2.8, < 4.0)
99
- sqlite3 (1.3.10)
100
- temple (0.6.10)
101
- therubyracer (0.12.1)
102
- libv8 (~> 3.16.14.0)
103
- ref
104
- thin (1.6.2)
105
- daemons (>= 1.0.9)
106
- eventmachine (>= 1.0.0)
107
- rack (>= 1.0.0)
108
- thor (0.19.1)
109
- thread_safe (0.3.4)
110
- tilt (1.4.1)
111
- twitter-bootstrap-rails (3.2.0)
112
- actionpack (~> 4.1)
113
- execjs (~> 2.2)
114
- rails (~> 4.1)
115
- railties (~> 4.1)
116
- tzinfo (1.2.2)
117
- thread_safe (~> 0.1)
118
-
119
- PLATFORMS
120
- ruby
121
-
122
- DEPENDENCIES
123
- easy_reports!
124
- less-rails
125
- pg
126
- slim
127
- sqlite3
128
- therubyracer
129
- thin
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ easy_reports (0.0.23)
5
+ bootstrap-select-rails
6
+ jquery-rails
7
+ less-rails
8
+ pg
9
+ rails (~> 4.1.8)
10
+ sequel
11
+ slim
12
+ therubyracer
13
+ twitter-bootstrap-rails
14
+
15
+ GEM
16
+ remote: https://rubygems.org/
17
+ specs:
18
+ actionmailer (4.1.9)
19
+ actionpack (= 4.1.9)
20
+ actionview (= 4.1.9)
21
+ mail (~> 2.5, >= 2.5.4)
22
+ actionpack (4.1.9)
23
+ actionview (= 4.1.9)
24
+ activesupport (= 4.1.9)
25
+ rack (~> 1.5.2)
26
+ rack-test (~> 0.6.2)
27
+ actionview (4.1.9)
28
+ activesupport (= 4.1.9)
29
+ builder (~> 3.1)
30
+ erubis (~> 2.7.0)
31
+ activemodel (4.1.9)
32
+ activesupport (= 4.1.9)
33
+ builder (~> 3.1)
34
+ activerecord (4.1.9)
35
+ activemodel (= 4.1.9)
36
+ activesupport (= 4.1.9)
37
+ arel (~> 5.0.0)
38
+ activesupport (4.1.9)
39
+ i18n (~> 0.6, >= 0.6.9)
40
+ json (~> 1.7, >= 1.7.7)
41
+ minitest (~> 5.1)
42
+ thread_safe (~> 0.1)
43
+ tzinfo (~> 1.1)
44
+ arel (5.0.1.20140414130214)
45
+ bootstrap-select-rails (1.6.3)
46
+ builder (3.2.2)
47
+ commonjs (0.2.7)
48
+ daemons (1.1.9)
49
+ erubis (2.7.0)
50
+ eventmachine (1.0.3)
51
+ execjs (2.2.2)
52
+ hike (1.2.3)
53
+ i18n (0.7.0)
54
+ jquery-rails (3.1.2)
55
+ railties (>= 3.0, < 5.0)
56
+ thor (>= 0.14, < 2.0)
57
+ json (1.8.2)
58
+ less (2.6.0)
59
+ commonjs (~> 0.2.7)
60
+ less-rails (2.6.0)
61
+ actionpack (>= 3.1)
62
+ less (~> 2.6.0)
63
+ libv8 (3.16.14.7)
64
+ mail (2.6.3)
65
+ mime-types (>= 1.16, < 3)
66
+ mime-types (2.4.3)
67
+ minitest (5.5.1)
68
+ multi_json (1.10.1)
69
+ pg (0.18.1)
70
+ rack (1.5.2)
71
+ rack-test (0.6.3)
72
+ rack (>= 1.0)
73
+ rails (4.1.9)
74
+ actionmailer (= 4.1.9)
75
+ actionpack (= 4.1.9)
76
+ actionview (= 4.1.9)
77
+ activemodel (= 4.1.9)
78
+ activerecord (= 4.1.9)
79
+ activesupport (= 4.1.9)
80
+ bundler (>= 1.3.0, < 2.0)
81
+ railties (= 4.1.9)
82
+ sprockets-rails (~> 2.0)
83
+ railties (4.1.9)
84
+ actionpack (= 4.1.9)
85
+ activesupport (= 4.1.9)
86
+ rake (>= 0.8.7)
87
+ thor (>= 0.18.1, < 2.0)
88
+ rake (10.4.2)
89
+ ref (1.0.5)
90
+ sequel (4.18.0)
91
+ slim (3.0.1)
92
+ temple (~> 0.7.3)
93
+ tilt (>= 1.3.3, < 2.1)
94
+ sprockets (2.12.3)
95
+ hike (~> 1.2)
96
+ multi_json (~> 1.0)
97
+ rack (~> 1.0)
98
+ tilt (~> 1.1, != 1.3.0)
99
+ sprockets-rails (2.2.2)
100
+ actionpack (>= 3.0)
101
+ activesupport (>= 3.0)
102
+ sprockets (>= 2.8, < 4.0)
103
+ sqlite3 (1.3.10)
104
+ temple (0.7.5)
105
+ therubyracer (0.12.1)
106
+ libv8 (~> 3.16.14.0)
107
+ ref
108
+ thin (1.6.2)
109
+ daemons (>= 1.0.9)
110
+ eventmachine (>= 1.0.0)
111
+ rack (>= 1.0.0)
112
+ thor (0.19.1)
113
+ thread_safe (0.3.4)
114
+ tilt (1.4.1)
115
+ twitter-bootstrap-rails (3.2.0)
116
+ actionpack (~> 4.1)
117
+ execjs (~> 2.2)
118
+ rails (~> 4.1)
119
+ railties (~> 4.1)
120
+ tzinfo (1.2.2)
121
+ thread_safe (~> 0.1)
122
+
123
+ PLATFORMS
124
+ ruby
125
+
126
+ DEPENDENCIES
127
+ easy_reports!
128
+ sqlite3
129
+ thin
data/test/dummy/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -1,13 +1,13 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -1,4 +1,4 @@
1
- jQuery(function() {
2
- $("a[rel~=popover], .has-popover").popover();
3
- $("a[rel~=tooltip], .has-tooltip").tooltip();
4
- });
1
+ jQuery(function() {
2
+ $("a[rel~=popover], .has-popover").popover();
3
+ $("a[rel~=tooltip], .has-tooltip").tooltip();
4
+ });
@@ -1,15 +1,15 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -1,29 +1,29 @@
1
- @import "twitter/bootstrap/bootstrap";
2
-
3
- // Set the correct sprite paths
4
- @iconSpritePath: image-url("twitter/bootstrap/glyphicons-halflings.png");
5
- @iconWhiteSpritePath: image-url("twitter/bootstrap/glyphicons-halflings-white.png");
6
-
7
- // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
8
- @fontAwesomeEotPath: font-url("fontawesome-webfont.eot");
9
- @fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix");
10
- @fontAwesomeWoffPath: font-url("fontawesome-webfont.woff");
11
- @fontAwesomeTtfPath: font-url("fontawesome-webfont.ttf");
12
- @fontAwesomeSvgPath: font-url("fontawesome-webfont.svg#fontawesomeregular");
13
-
14
- // Font Awesome
15
- @import "fontawesome/font-awesome";
16
-
17
- // Glyphicons
18
- //@import "twitter/bootstrap/glyphicons.less";
19
-
20
- // Your custom LESS stylesheets goes here
21
- //
22
- // Since bootstrap was imported above you have access to its mixins which
23
- // you may use and inherit here
24
- //
25
- // If you'd like to override bootstrap's own variables, you can do so here as well
26
- // See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
27
- //
28
- // Example:
29
- // @link-color: #ff0000;
1
+ @import "twitter/bootstrap/bootstrap";
2
+
3
+ // Set the correct sprite paths
4
+ @iconSpritePath: image-url("twitter/bootstrap/glyphicons-halflings.png");
5
+ @iconWhiteSpritePath: image-url("twitter/bootstrap/glyphicons-halflings-white.png");
6
+
7
+ // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
8
+ @fontAwesomeEotPath: font-url("fontawesome-webfont.eot");
9
+ @fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix");
10
+ @fontAwesomeWoffPath: font-url("fontawesome-webfont.woff");
11
+ @fontAwesomeTtfPath: font-url("fontawesome-webfont.ttf");
12
+ @fontAwesomeSvgPath: font-url("fontawesome-webfont.svg#fontawesomeregular");
13
+
14
+ // Font Awesome
15
+ @import "fontawesome/font-awesome";
16
+
17
+ // Glyphicons
18
+ //@import "twitter/bootstrap/glyphicons.less";
19
+
20
+ // Your custom LESS stylesheets goes here
21
+ //
22
+ // Since bootstrap was imported above you have access to its mixins which
23
+ // you may use and inherit here
24
+ //
25
+ // If you'd like to override bootstrap's own variables, you can do so here as well
26
+ // See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
27
+ //
28
+ // Example:
29
+ // @link-color: #ff0000;
@@ -1,5 +1,5 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -1,2 +1,2 @@
1
- module ApplicationHelper
2
- end
1
+ module ApplicationHelper
2
+ end