gmaps4rails 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. metadata +6 -386
  3. data/.gitignore +0 -17
  4. data/.travis.yml +0 -10
  5. data/Gemfile +0 -9
  6. data/Gemfile.lock +0 -182
  7. data/Guardfile +0 -24
  8. data/MIT-LICENSE +0 -20
  9. data/README.rdoc +0 -135
  10. data/Rakefile +0 -4
  11. data/app/assets/javascripts/gmaps4rails/gmaps4rails.base.js.coffee +0 -444
  12. data/app/assets/javascripts/gmaps4rails/gmaps4rails.bing.js.coffee +0 -174
  13. data/app/assets/javascripts/gmaps4rails/gmaps4rails.googlemaps.js.coffee +0 -339
  14. data/app/assets/javascripts/gmaps4rails/gmaps4rails.mapquest.js.coffee +0 -145
  15. data/app/assets/javascripts/gmaps4rails/gmaps4rails.openlayers.js.coffee +0 -261
  16. data/app/views/gmaps4rails/_gmaps4rails.html.erb +0 -20
  17. data/gmaps4rails.gemspec +0 -39
  18. data/lib/generators/gmaps4rails/install_generator.rb +0 -48
  19. data/lib/generators/templates/README +0 -2
  20. data/lib/gmaps4rails.rb +0 -26
  21. data/lib/gmaps4rails/acts_as_gmappable.rb +0 -54
  22. data/lib/gmaps4rails/api_wrappers/base_net_methods.rb +0 -40
  23. data/lib/gmaps4rails/api_wrappers/direction.rb +0 -87
  24. data/lib/gmaps4rails/api_wrappers/geocoder.rb +0 -54
  25. data/lib/gmaps4rails/api_wrappers/places.rb +0 -74
  26. data/lib/gmaps4rails/base.rb +0 -119
  27. data/lib/gmaps4rails/extensions/enumerable.rb +0 -14
  28. data/lib/gmaps4rails/extensions/hash.rb +0 -9
  29. data/lib/gmaps4rails/helper/gmaps4rails_helper.rb +0 -33
  30. data/lib/gmaps4rails/js_builder.rb +0 -157
  31. data/lib/gmaps4rails/json_builder.rb +0 -140
  32. data/lib/gmaps4rails/model_handler.rb +0 -101
  33. data/lib/gmaps4rails/version.rb +0 -3
  34. data/lib/gmaps4rails/view_helper.rb +0 -175
  35. data/lib/tasks/gmaps4rails_tasks.rake +0 -4
  36. data/lib/tasks/jasmine.rake +0 -8
  37. data/public/javascripts/gmaps4rails/gmaps4rails.base.js +0 -464
  38. data/public/javascripts/gmaps4rails/gmaps4rails.bing.js +0 -226
  39. data/public/javascripts/gmaps4rails/gmaps4rails.googlemaps.js +0 -430
  40. data/public/javascripts/gmaps4rails/gmaps4rails.mapquest.js +0 -178
  41. data/public/javascripts/gmaps4rails/gmaps4rails.openlayers.js +0 -265
  42. data/public/stylesheets/gmaps4rails.css +0 -24
  43. data/spec/dummy/.gitignore +0 -2
  44. data/spec/dummy/.rspec +0 -1
  45. data/spec/dummy/README.rdoc +0 -261
  46. data/spec/dummy/Rakefile +0 -7
  47. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  48. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  49. data/spec/dummy/app/assets/stylesheets/gmaps4rails.css +0 -24
  50. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  51. data/spec/dummy/app/controllers/users_controller.rb +0 -101
  52. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  53. data/spec/dummy/app/mailers/.gitkeep +0 -0
  54. data/spec/dummy/app/models/.gitkeep +0 -0
  55. data/spec/dummy/app/models/place.rb +0 -16
  56. data/spec/dummy/app/models/user.rb +0 -12
  57. data/spec/dummy/app/views/layouts/application.html.erb +0 -16
  58. data/spec/dummy/app/views/users/_form.html.erb +0 -37
  59. data/spec/dummy/app/views/users/_map.html.erb +0 -5
  60. data/spec/dummy/app/views/users/edit.html.erb +0 -6
  61. data/spec/dummy/app/views/users/index.html.erb +0 -260
  62. data/spec/dummy/app/views/users/new.html.erb +0 -5
  63. data/spec/dummy/app/views/users/show.html.erb +0 -30
  64. data/spec/dummy/config.ru +0 -4
  65. data/spec/dummy/config/application.rb +0 -62
  66. data/spec/dummy/config/boot.rb +0 -10
  67. data/spec/dummy/config/database.yml +0 -25
  68. data/spec/dummy/config/environment.rb +0 -5
  69. data/spec/dummy/config/environments/development.rb +0 -37
  70. data/spec/dummy/config/environments/production.rb +0 -67
  71. data/spec/dummy/config/environments/test.rb +0 -37
  72. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  73. data/spec/dummy/config/initializers/gmaps4rails.rb +0 -1
  74. data/spec/dummy/config/initializers/inflections.rb +0 -15
  75. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  76. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  77. data/spec/dummy/config/initializers/session_store.rb +0 -8
  78. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  79. data/spec/dummy/config/locales/en.yml +0 -5
  80. data/spec/dummy/config/routes.rb +0 -60
  81. data/spec/dummy/db/migrate/20120408170155_create_users.rb +0 -16
  82. data/spec/dummy/db/schema.rb +0 -29
  83. data/spec/dummy/lib/assets/.gitkeep +0 -0
  84. data/spec/dummy/log/.gitkeep +0 -0
  85. data/spec/dummy/public/404.html +0 -26
  86. data/spec/dummy/public/422.html +0 -26
  87. data/spec/dummy/public/500.html +0 -25
  88. data/spec/dummy/public/favicon.ico +0 -0
  89. data/spec/dummy/public/javascripts/Player.js +0 -22
  90. data/spec/dummy/public/javascripts/Song.js +0 -7
  91. data/spec/dummy/public/logo.png +0 -0
  92. data/spec/dummy/script/rails +0 -6
  93. data/spec/factories/place_factory.rb +0 -16
  94. data/spec/factories/user_factory.rb +0 -23
  95. data/spec/fixtures/google_direction_valid.json +0 -65
  96. data/spec/fixtures/google_geocoding_toulon_france.json +0 -58
  97. data/spec/fixtures/google_places_valid.json +0 -45
  98. data/spec/fixtures/google_wrong_geocoding.json +0 -4
  99. data/spec/javascripts/basic_methods_spec.js +0 -103
  100. data/spec/javascripts/helpers/.gitkeep +0 -0
  101. data/spec/javascripts/helpers/SpecHelper.js +0 -87
  102. data/spec/javascripts/map_spec.js +0 -49
  103. data/spec/javascripts/markers_methods_spec.js +0 -368
  104. data/spec/javascripts/mocks_spec.js +0 -27
  105. data/spec/javascripts/support/jasmine.yml +0 -10
  106. data/spec/javascripts/support/jasmine_config.rb +0 -23
  107. data/spec/javascripts/support/jasmine_runner.rb +0 -20
  108. data/spec/launchers/all_but_requests.rb +0 -0
  109. data/spec/launchers/all_specs.rb +0 -0
  110. data/spec/launchers/requests.rb +0 -0
  111. data/spec/lib/base_spec.rb +0 -59
  112. data/spec/lib/direction_spec.rb +0 -53
  113. data/spec/lib/geocoder_spec.rb +0 -46
  114. data/spec/lib/js_builder_spec.rb +0 -139
  115. data/spec/lib/json_builder_spec.rb +0 -232
  116. data/spec/lib/places_spec.rb +0 -25
  117. data/spec/models/place_spec.rb +0 -35
  118. data/spec/models/user_spec.rb +0 -187
  119. data/spec/spec_helper.rb +0 -44
  120. data/spec/support/geocoding.rb +0 -41
  121. data/spec/support/matchers.rb +0 -73
@@ -1,16 +0,0 @@
1
- if RUBY_VERSION == "1.9.3"
2
-
3
- require 'mongoid'
4
-
5
- class Place
6
- include Mongoid::Document
7
- include Gmaps4rails::ActsAsGmappable
8
-
9
- acts_as_gmappable :address => :address, :position => :pos
10
-
11
- field :pos, :type => Array
12
- field :address, :type => String
13
- field :gmaps, :type => Boolean
14
- end
15
-
16
- end
@@ -1,12 +0,0 @@
1
- class User < ActiveRecord::Base
2
- acts_as_gmappable :address => :address
3
-
4
- attr_accessor :lat_test, :long_test, :bool_test
5
-
6
- after_initialize :set_lat_test
7
-
8
- def set_lat_test
9
- self.lat_test = address
10
- end
11
-
12
- end
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag "application", :media => "all" %>
6
- <%= javascript_include_tag "application" %>
7
- <%= csrf_meta_tags %>
8
- <%= yield :head %>
9
- </head>
10
- <body>
11
-
12
- <%= yield %>
13
-
14
- <%= yield :scripts %>
15
- </body>
16
- </html>
@@ -1,37 +0,0 @@
1
- <%= form_for(@user) do |f| %>
2
- <% if @user.errors.any? %>
3
- <div id="error_explanation">
4
- <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
5
-
6
- <ul>
7
- <% @user.errors.full_messages.each do |msg| %>
8
- <li><%= msg %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div class="field">
15
- <%= f.label :name %><br />
16
- <%= f.text_field :name %>
17
- </div>
18
- <div class="field">
19
- <%= f.label :address %><br />
20
- <%= f.text_field :address %>
21
- </div>
22
- <div class="field">
23
- <%= f.label :latitude %><br />
24
- <%= f.text_field :latitude %>
25
- </div>
26
- <div class="field">
27
- <%= f.label :longitude %><br />
28
- <%= f.text_field :longitude %>
29
- </div>
30
- <div class="field">
31
- <%= f.label :gmaps %><br />
32
- <%= f.check_box :gmaps %>
33
- </div>
34
- <div class="actions">
35
- <%= f.submit %>
36
- </div>
37
- <% end %>
@@ -1,5 +0,0 @@
1
- <%#= gmaps(:markers => {:data => json, :options => {:do_clustering => false, "custom_infowindow_class" => "yellow"}},
2
- :map_options => {:auto_adjust => true, :raw => "{styles: styles}" },
3
- :last_map => true) %>
4
-
5
- <%= gmaps4rails json %>
@@ -1,6 +0,0 @@
1
- <h1>Editing user</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Show', @user %> |
6
- <%= link_to 'Back', users_path %>
@@ -1,260 +0,0 @@
1
- <h1>Listing users</h1>
2
-
3
- <table>
4
- <tr>
5
- <th>Name</th>
6
- <th>Address</th>
7
- <th>Latitude</th>
8
- <th>Longitude</th>
9
- <th>Gmaps</th>
10
- <th></th>
11
- <th></th>
12
- <th></th>
13
- </tr>
14
- <% @users.each_with_index do |user, index| %>
15
- <% break if index == 5 %>
16
- <tr>
17
- <td><%= user.name %></td>
18
- <td><%= user.address %></td>
19
- <td><%= user.latitude %></td>
20
- <td><%= user.longitude %></td>
21
- <td><%= user.gmaps %></td>
22
- <td><%= link_to 'Show', user %></td>
23
- <td><%= link_to 'Edit', edit_user_path(user) %></td>
24
- <td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
25
- </tr>
26
- <% end %>
27
- </table>
28
-
29
- <br />
30
-
31
- <!-- <div class="map_container">
32
- <div id="map" class="gmaps4rails_map"></div>
33
- </div> -->
34
- <script type="text/javascript" charset="utf-8">
35
- //window.onload =alert('ok');
36
-
37
- //
38
- // Gmaps.map = new Gmaps4RailsGoogle();
39
- // function load_map() {
40
- // Gmaps.map.initialize();
41
- // Gmaps.map.callback();
42
- // };
43
- // window.onload = function() { Gmaps.loadMaps(); };
44
- //
45
- //Gmaps.map.map_options.class = 'gmaps4railsmap';
46
- </script>
47
-
48
-
49
- <%= link_to 'New User', new_user_path %>
50
-
51
- <%#= gmaps({"markers" => {"data" => @json },
52
- "map_options" => { :provider => "openlayers"}}) %>
53
- <%#= gmaps({}) %>
54
-
55
-
56
- <%#= gmaps({
57
- :map_options => {
58
- # :auto_adjust => false,
59
- :center_on_user => true,
60
- :zoom => 3,
61
- :raw => '{ scrollwheel: false }',
62
- :center_latitude => 41.574361,
63
- :center_longitude => -72.949219,
64
- :libraries => ["places"] }
65
- }) %>
66
- <%#= gmaps( :map_options => {:auto_adjust=>true, :auto_zoom=>true}, :markers => {:data=>"[{\"lat\":43.5368851,\"lng\":-79.6849913}]"}, :circles => {:data=>"[{\"lng\":-79.6849913,\"lat\":43.5368851,\"radius\":5000.0,\"strokeColor\":\"#DD3300\"}]", :options=>{:fillOpacity=>0.35}} )
67
- %>
68
- <%#= gmaps4rails(@json) %>
69
- <%#= gmaps(:markers => {:data => @json}, :map_options => { :detect_location => true, :auto_zoom => false, :zoom => 15, :auto_adjust => true, :center_on_user => true}) %>
70
- <%#= gmaps(:map_options => { :auto_adjust => true },
71
- :markers => {
72
- :data => @json,
73
- :options => {:do_clustering => true}
74
- }) %>
75
-
76
- <%#= gmaps("markers" => { "data" => @json, "options" => {
77
- "picture" => "/logo.png",
78
- "width" => 30, "marker_length" => 32 } }) %>
79
-
80
-
81
- <%#= gmaps( {:map_options => { :disableDefaultUI => true, :auto_adjust => true, :center_on_user => true, :detect_location => true, :center_latitude => 41.574361,
82
- :center_longitude => -72.949219 }}) %>
83
- <%#= gmaps(:map_options => {:type => "ROADMAP"},
84
- :markers => {:data => @json,
85
- :options => {"list_container" => "markers_list" }
86
- })%>
87
- <div id="markers_list"></div>
88
-
89
- <%= render :partial => 'map', :locals => {:json => @json} %>
90
-
91
- <%#= gmaps(:markers => {:data => @json, :options => {:do_clustering => false, "custom_infowindow_class" => "yellow", :raw => "{ flat: true, draggable: true}" } },
92
- :polygons => {:data => '[[
93
- {"lng": 5.190262, "lat": 25.774252},
94
- {"lng": 7.118292, "lat": 45.466465},
95
- {"lng": 4.75737, "lat": 53.321384}
96
- ]]'},
97
- "circles" => { "data" => '[
98
- {"lng": -122.214897, "lat": 37.772323, "radius": 1000000},
99
- {"lng": 122.214897, "lat": 37.772323, "radius": 1000000, "strokeColor": "#FF0000"}
100
- ]'},
101
- "polylines" => { "data" => '[[
102
- {"lng": -122.214897, "lat": 37.772323},
103
- {"lng": -157.821856, "lat": 21.291982},
104
- {"lng": 178.431, "lat": -18.142599},
105
- {"lng": 153.027892, "lat": -27.46758}
106
- ],
107
- [
108
- {"lng": -120.214897, "lat": 30.772323, "strokeColor": "#000", "strokeWeight" : 2 },
109
- {"lng": -10.821856, "lat": 50.291982}
110
- ]]' },
111
- :map_options => {:auto_adjust => true, :auto_zoom => false, :zoom => 3, :center_on_user => false, :detect_location => false, :raw => "{styles: pinkParksStyles}" },
112
- :last_map => true) %>
113
- <%#= gmaps(:markers => {:data => '[{ "lng": "5.9311119", "lat": "43.1251606"} ,{ "lng": "2.3509871", "lat": "48.8566667" },{ "lng": "0", "lat": "0" } ]', "options" => {"do_clustering" => true, "draggable" => true } },
114
- :map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :id => "ed" },
115
- :scripts => "api",
116
- :last_map => false ) %>
117
- <%#= gmaps(:markers => {:data => @json, :options => {:do_clustering => false, :draggable => true } },
118
- :map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :provider => "openlayers", :id => "joe" },
119
- :scripts => "api",
120
- :last_map => false)
121
- %>
122
- <%#= gmaps(:markers => {:data => @json, :options => {:do_clustering => false, :draggable => true } },
123
- :map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :id => "joe3", :provider => "mapquest", :provider_key => MAPQUEST_KEY },
124
- :scripts => "api",
125
- :last_map => false ) %>
126
- <%#= gmaps(:markers => {"data" => @json, :options => {:do_clustering => false, :draggable => true } },
127
- :map_options => { :auto_adjust => true, :center_on_user => true, :zoom => 5, :id => "joe2", :provider => "bing", :provider_key => BING_KEY },
128
- :scripts => "api" ) %>
129
- <%#= gmaps({
130
- "map_options" => { "auto_adjust" => false, "zoom" => 0, "libraries" => ["places"] },
131
- "markers" => { "data" => @json }
132
- }, true, true) %>
133
- <%# @circles_json = '[ {"lng": -122.214897, "lat": 37.772323, "radius": 1000000} ]' %>
134
- <%#= gmaps(
135
- "circles" => { "data" => @circles_json } , "map_options" => { "auto_adjust" => true }
136
- ) %>
137
- <button type="button" onclick="Gmaps.map.replaceMarkers(builder2)">Replace Markers</button>
138
- <button type="button" onclick="Gmaps.map.addMarkers(builder2)">Add Markers</button>
139
- <button type="button" onclick="Gmaps.map.addMarkers(builder3)">Add Markers bis</button>
140
-
141
- <% content_for :scripts do -%>
142
- <script type="text/javascript" charset="utf-8">
143
-
144
- // Gmaps.map.jsTemplate = function(marker_container){
145
- // return "ok";
146
- // }
147
-
148
- // function HomeControl(controlDiv, map) {
149
- // var chicago = new google.maps.LatLng(41.850033, -87.6500523);
150
- //
151
- // // Set CSS styles for the DIV containing the control
152
- // // Setting padding to 5 px will offset the control
153
- // // from the edge of the map.
154
- // controlDiv.style.padding = '5px';
155
- //
156
- // // Set CSS for the control border.
157
- // var controlUI = document.createElement('DIV');
158
- // controlUI.style.backgroundColor = 'white';
159
- // controlUI.style.borderStyle = 'solid';
160
- // controlUI.style.borderWidth = '2px';
161
- // controlUI.style.cursor = 'pointer';
162
- // controlUI.style.textAlign = 'center';
163
- // controlUI.title = 'Click to set the map to Home';
164
- // controlDiv.appendChild(controlUI);
165
- //
166
- // // Set CSS for the control interior.
167
- // var controlText = document.createElement('DIV');
168
- // controlText.style.fontFamily = 'Arial,sans-serif';
169
- // controlText.style.fontSize = '12px';
170
- // controlText.style.paddingLeft = '4px';
171
- // controlText.style.paddingRight = '4px';
172
- // controlText.innerHTML = 'Home';
173
- // controlUI.appendChild(controlText);
174
- //
175
- // // Setup the click event listeners: simply set the map to Chicago.
176
- // google.maps.event.addDomListener(controlUI, 'click', function() {
177
- // map.setCenter(chicago)
178
- // });
179
- // }
180
- //
181
- // Gmaps.map.callback = function(){
182
- // // Create the DIV to hold the control and call the HomeControl() constructor
183
- // // passing in this DIV.
184
- // // var homeControlDiv = document.createElement('DIV');
185
- // // var homeControl = new HomeControl(homeControlDiv, Gmaps.map.map);
186
- // //
187
- // // homeControlDiv.index = 1;
188
- // // Gmaps.map.map.controls[google.maps.ControlPosition.TOP_RIGHT].push(homeControlDiv);
189
- // //Gmaps.map.serviceObject.setZoom(1);
190
- // };
191
- //
192
- //
193
- var styles = [
194
- {
195
- featureType: "all",
196
- stylers: [
197
- { "hue": "#ff1a00" }
198
- ]
199
- }
200
- ];
201
- var pinkParksStyles = [
202
- {
203
- featureType: "all",
204
- stylers: [
205
- { saturation: -80 }
206
- ]
207
- },
208
- {
209
- featureType: "poi.park",
210
- stylers: [
211
- { hue: "#ff0023" },
212
- { saturation: 40 }
213
- ]
214
- }
215
- ];
216
- //
217
- //
218
-
219
- Gmaps.map.infobox = function(boxText) {
220
- return {
221
- content: boxText
222
- ,disableAutoPan: false
223
- ,maxWidth: 0
224
- ,pixelOffset: new google.maps.Size(-140, 0)
225
- ,zIndex: null
226
- ,boxStyle: {
227
- background: "url('http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.5/examples/tipbox.gif') no-repeat"
228
- ,opacity: 0.75
229
- ,width: "280px"
230
- }
231
- ,closeBoxMargin: "10px 2px 2px 2px"
232
- ,closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif"
233
- ,infoBoxClearance: new google.maps.Size(1, 1)
234
- ,isHidden: false
235
- ,pane: "floatPane"
236
- ,enableEventPropagation: false
237
- }};
238
-
239
- </script>
240
- <script type="text/javascript" charset="utf-8">
241
-
242
- var builder2 =
243
- [
244
- {
245
- "lng": "5.9311119",
246
- "lat": "42.1251606",
247
- } ,{
248
- "lng": "32.3509871",
249
- "lat": "47.8566667",
250
- }
251
- ];
252
- var builder3 = [{
253
- "lng": "6.9311119",
254
- "lat": "49.1251606",
255
- } ,{
256
- "lng": "39.3509871",
257
- "lat": "40.8566667",
258
- } ];
259
- </script>
260
- <% end -%>
@@ -1,5 +0,0 @@
1
- <h1>New user</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Back', users_path %>
@@ -1,30 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <b>Name:</b>
5
- <%= @user.name %>
6
- </p>
7
-
8
- <p>
9
- <b>Address:</b>
10
- <%= @user.address %>
11
- </p>
12
-
13
- <p>
14
- <b>Latitude:</b>
15
- <%= @user.latitude %>
16
- </p>
17
-
18
- <p>
19
- <b>Longitude:</b>
20
- <%= @user.longitude %>
21
- </p>
22
-
23
- <p>
24
- <b>Gmaps:</b>
25
- <%= @user.gmaps %>
26
- </p>
27
-
28
-
29
- <%= link_to 'Edit', edit_user_path(@user) %> |
30
- <%= link_to 'Back', users_path %>
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
@@ -1,62 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- # Pick the frameworks you want:
4
- require "active_record/railtie"
5
- require "action_controller/railtie"
6
- require "action_mailer/railtie"
7
- require "active_resource/railtie"
8
- require "sprockets/railtie"
9
- # require "rails/test_unit/railtie"
10
-
11
- Bundler.require
12
- require "gmaps4rails"
13
-
14
- module Dummy
15
- class Application < Rails::Application
16
- # Settings in config/environments/* take precedence over those specified here.
17
- # Application configuration should go into files in config/initializers
18
- # -- all .rb files in that directory are automatically loaded.
19
-
20
- # Custom directories with classes and modules you want to be autoloadable.
21
- # config.autoload_paths += %W(#{config.root}/extras)
22
-
23
- # Only load the plugins named here, in the order given (default is alphabetical).
24
- # :all can be used as a placeholder for all plugins not explicitly named.
25
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
26
-
27
- # Activate observers that should always be running.
28
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
29
-
30
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
31
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
32
- # config.time_zone = 'Central Time (US & Canada)'
33
-
34
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
35
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
36
- # config.i18n.default_locale = :de
37
-
38
- # Configure the default encoding used in templates for Ruby 1.9.
39
- config.encoding = "utf-8"
40
-
41
- # Configure sensitive parameters which will be filtered from the log file.
42
- config.filter_parameters += [:password]
43
-
44
- # Use SQL instead of Active Record's schema dumper when creating the database.
45
- # This is necessary if your schema can't be completely dumped by the schema dumper,
46
- # like if you have constraints or database-specific column types
47
- # config.active_record.schema_format = :sql
48
-
49
- # Enforce whitelist mode for mass assignment.
50
- # This will create an empty whitelist of attributes available for mass-assignment for all models
51
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
52
- # parameters by using an attr_accessible or attr_protected declaration.
53
- # config.active_record.whitelist_attributes = true
54
-
55
- # Enable the asset pipeline
56
- config.assets.enabled = true
57
-
58
- # Version of your assets, change this if you want to expire all your assets
59
- config.assets.version = '1.0'
60
- end
61
- end
62
-