rails_wordpress 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_wordpress/railtie.rb +14 -0
- data/lib/rails_wordpress/version.rb +1 -1
- data/lib/rails_wordpress.rb +1 -0
- data/spec/dummy/config/application.rb +0 -3
- data/spec/dummy/log/test.log +837 -21323
- data/spec/spec_helper.rb +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c92cb07fc3f6a7748f72e72b7e74ac6c49304e8f
|
4
|
+
data.tar.gz: c187f8e12554193429ffddea2e424521c971047e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3e74de53878a2eac6c9f05abcb063d59d3834814c500f1cbbc2ca4db9cac453c32c81f8b6f66d12510ec63d692f4e6d0edd1fca7893f340ab7016d16aa70ca4
|
7
|
+
data.tar.gz: 2ddda16aed9b7e4d43b00198f1d1182ee7b834f77d7d482f19ce13d7ef5b3835beab142b4c774b19b693b219f79390c4dc6ee8af416e0bc2144bf78906e6ff00
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Wordpress
|
2
|
+
class Railtie < ::Rails::Railtie
|
3
|
+
initializer :wordpress do |app|
|
4
|
+
if Rails::VERSION::MAJOR >= 5
|
5
|
+
options = app.config.active_record
|
6
|
+
options.belongs_to_required_by_default = false
|
7
|
+
|
8
|
+
ActiveSupport.on_load(:active_record) do
|
9
|
+
options.each { |k,v| send("#{k}=", v) }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/rails_wordpress.rb
CHANGED
@@ -18,9 +18,6 @@ module Dummy
|
|
18
18
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
19
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
20
|
# config.i18n.default_locale = :de
|
21
|
-
|
22
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
23
|
-
config.active_record.raise_in_transactional_callbacks = true
|
24
21
|
end
|
25
22
|
end
|
26
23
|
|