rostra 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Rostra
|
|
3
3
|
|
4
4
|
include Rostra::Config
|
5
5
|
|
6
|
-
helper_method :user_logged_in?, :
|
6
|
+
helper_method :user_logged_in?, :main_app_login_path, :main_app_signup_path, :rostra_user
|
7
7
|
|
8
8
|
rescue_from CanCan::AccessDenied do |exception|
|
9
9
|
after_access_denied
|
@@ -13,6 +13,14 @@ module Rostra
|
|
13
13
|
send(Rostra::Config.rostra_user)
|
14
14
|
end
|
15
15
|
|
16
|
+
helper_method Rostra::Config.rostra_user
|
17
|
+
|
18
|
+
# def current_user
|
19
|
+
# rostra_user
|
20
|
+
# end
|
21
|
+
|
22
|
+
# alias :current_user :
|
23
|
+
|
16
24
|
def main_app_login_path
|
17
25
|
send(:main_app).send(Rostra::Config.main_app_login_path)
|
18
26
|
end
|
data/lib/rostra/version.rb
CHANGED