natstrap 0.2.2 → 0.2.3

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.
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Project requirements
4
4
  gem 'activerecord', :require => "active_record"
@@ -23,6 +23,19 @@ ActiveSupport.use_standard_json_time_format = true
23
23
  # if you're including raw json in an HTML page.
24
24
  ActiveSupport.escape_html_entities_in_json = false
25
25
 
26
+ # Raise exception on mass assignment protection for Active Record models.
27
+ ActiveRecord::Base.mass_assignment_sanitizer = :strict
28
+
29
+ # Log the query plan for queries taking more than this (works
30
+ # with SQLite, MySQL, and PostgreSQL).
31
+ ActiveRecord::Base.auto_explain_threshold_in_seconds = 0.5
32
+
33
+ # Include Active Record class name as root for JSON serialized output.
34
+ ActiveRecord::Base.include_root_in_json = false
35
+
36
+ # Store the full class name (including module namespace) in STI type column.
37
+ ActiveRecord::Base.store_full_sti_class = true
38
+
26
39
  # Now we can estabilish connection with our db
27
40
  if connections[Padrino.env]
28
41
  url = URI(connections[Padrino.env])
@@ -1,3 +1,3 @@
1
1
  module Natstrap
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: natstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-13 00:00:00.000000000 Z
12
+ date: 2013-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: -4383274124112534190
168
+ hash: -708743258534163338
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements:
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  segments:
176
176
  - 0
177
- hash: -4383274124112534190
177
+ hash: -708743258534163338
178
178
  requirements: []
179
179
  rubyforge_project:
180
180
  rubygems_version: 1.8.23