native 2.0.0 → 2.0.1

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: 0bfb554ed0a23884a6355580ddee53294e29b6ddfee890d4b81c894b027c9359
4
- data.tar.gz: dfc98650f1fa96e4f72f6047017d8326fb526a47967657d2713eedcc24d66504
3
+ metadata.gz: 4538b61237cafb2d12cab88c7b5899e9ec372bd435fc3074173600526f90a144
4
+ data.tar.gz: f152537eaa655ae2d3e9f7b8bd45f5cef6732cb1fef1c7d84c6cb5ac7b8feacc
5
5
  SHA512:
6
- metadata.gz: 5375af7ad6450574e0317b12ac34a4cc5e1575558c57512335174c284d65f8eda977a0018434970800b8584e57579ae486bfd99fd342a1ed7583425929df177e
7
- data.tar.gz: 9f73e0a914cc98362dee8a0bf213cde5ffeb4329dbecac9f4d00e2a7efa38996ea63f67ee5153060e3229196a1f52860ceedefd1fbe06dced38e38b42c5a41db
6
+ metadata.gz: 32b98ff9a526b4e7bd6033743963e88c31fc9f7b3984f071e4e1a0199ab87f5b6e7465c56c2631b9fe573e3eb699dab5931cfd9f4dd1c66653b40b02b3521f7a
7
+ data.tar.gz: b3be9a4bebdb9d586a6ea5664ee7a6712269ac9448accd31a686768ccdfe6e47d345400aa3caf579d5c166a524df7296e8736bfdef9a33044ae239863709fe08
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.0.1 - 2017-12-21
8
+
9
+ * bugfixes
10
+ * fixed `undefined method 'set_device_owner' for ApplicationController:Class`
11
+
7
12
  ### 2.0.0 - 2017-12-21
8
13
 
9
14
  * features
data/README.md CHANGED
@@ -106,7 +106,7 @@ Go to `app/assets/config/manifest.js` and add the following lines:
106
106
  Let's move on to your devise class. For instance `User` located in `app/models/user.rb`. Associate belonging `App` objects:
107
107
 
108
108
  ```ruby
109
- has_many :apps
109
+ has_many :apps, class_name: 'Native::App'
110
110
  ```
111
111
 
112
112
  Lastly, got to your routes file (`config/routes.rb`) and mount the `Native::Engine` class:
@@ -1,7 +1,2 @@
1
1
  class Native::ApplicationController < ActionController::Base
2
-
3
- def set_app_owner
4
- current_user if current_user
5
- end
6
-
7
2
  end
@@ -60,7 +60,7 @@ module Native
60
60
  @app.platform = platform
61
61
  @app.url = url
62
62
  end
63
- @app.owner = ApplicationController.set_app_owner || set_app_owner
63
+ @app.owner = ApplicationController.try(:set_app_owner) || set_app_owner
64
64
  @app.last_used = Time.now
65
65
  @app.save!
66
66
 
@@ -69,5 +69,9 @@ module Native
69
69
  cookies[:nativeApp] = url
70
70
  end
71
71
 
72
+ def set_app_owner
73
+ current_user if current_user
74
+ end
75
+
72
76
  end
73
77
  end
@@ -1,5 +1,5 @@
1
1
  module Native
2
2
 
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: native
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter