user_switch 0.0.4 → 0.0.5
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.
- data/README.md +6 -1
- data/lib/user_switch/extension.rb +1 -1
- data/lib/user_switch/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
User_Switch
|
2
2
|
===========
|
3
3
|
|
4
|
-
When you use the "devise" gem. User_Switch can switch
|
4
|
+
When you use the "devise" gem. User_Switch can switch login user in a very simple way.
|
5
5
|
|
6
|
+
Just follow these steps:
|
7
|
+
1. Add to Gemfile in development group and bundle: `gem airbrake-local`
|
8
|
+
2. Run `rails generate user_switch:install <PROJECT_NAME>`
|
9
|
+
3. Change the configuration in config/initializers/user_switch.rb
|
10
|
+
4. That's it!
|
@@ -8,7 +8,7 @@ module UserSwitch
|
|
8
8
|
|
9
9
|
def user_switch_output
|
10
10
|
# self.
|
11
|
-
self.response.body += "<link href='
|
11
|
+
self.response.body += "<link href='#{Rails.application.config.assets.prefix}/user_switch.css' media='all' rel='stylesheet' type='text/css' />"
|
12
12
|
self.response.body += "<div class='user-switch-panel'><div class='icon'></div><div class='detail'><b>User Switch</b><hr>"
|
13
13
|
UserSwitch.available_users.each do |scope,proc|
|
14
14
|
self.response.body += "#{scope}: <form action='/user_switch/#{scope}' method='post'><select name='resource_id'>"
|
data/lib/user_switch/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_switch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
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: 2014-
|
12
|
+
date: 2014-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Switch the login account in seconds. Depends on devise.
|
15
15
|
email:
|