fat_free_crm 0.13.5 → 0.13.6
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.
Potentially problematic release.
This version of fat_free_crm might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/controllers/application_controller.rb +10 -0
- data/app/views/users/_user.html.haml +6 -2
- data/lib/fat_free_crm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce186159c267064d32924e1116da602a875ea3de
|
4
|
+
data.tar.gz: ff0fd2379f861a86297a01c7c0499aee392410ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65a6ab2b4e1c51f92995c3db7aafb8eacdb98c3c3e3a3af1a2f4dcf32027a6e7c0583ff3fdef4277aaca648d07236e79db01521389286416ffe4f7d78fb41f9
|
7
|
+
data.tar.gz: 27595bcf7d5a1e20496804426fde316ce1a1e06f27780afe9ac270ecbdcd16104278afeaa82eae6c93bb782d195cb1cde58be2dfc27838002172daeb4d4cf9f5
|
@@ -49,6 +49,16 @@ class ApplicationController < ActionController::Base
|
|
49
49
|
|
50
50
|
private
|
51
51
|
|
52
|
+
#
|
53
|
+
# In rails 3, the default behaviour for handle_unverified_request is to delete the session
|
54
|
+
# and continue executing the request. However, we use cookie based authentication and need
|
55
|
+
# to halt proceedings. In Rails 4, use "protect_from_forgery with: :exception"
|
56
|
+
# See http://blog.nvisium.com/2014/09/understanding-protectfromforgery.html for more details.
|
57
|
+
#----------------------------------------------------------------------------
|
58
|
+
def handle_unverified_request
|
59
|
+
raise ActionController::InvalidAuthenticityToken
|
60
|
+
end
|
61
|
+
|
52
62
|
#
|
53
63
|
# Takes { :related => 'campaigns/7' } or { :related => '5' }
|
54
64
|
# and returns array of object ids that should be excluded from search
|
@@ -21,8 +21,12 @@
|
|
21
21
|
- if !@user.phone.blank? && !@user.mobile.blank?
|
22
22
|
%div #{t :phone}: <b>#{@user.phone}</b>, #{t :mobile}: <b>#{@user.mobile}</b>
|
23
23
|
- else
|
24
|
-
|
25
|
-
|
24
|
+
- if @user.phone.present?
|
25
|
+
= t(:phone) + ":"
|
26
|
+
= content_tag(:b, @user.phone)
|
27
|
+
- if @user.mobile.present?
|
28
|
+
= t(:mobile) + ":"
|
29
|
+
= content_tag(:b, @user.mobile)
|
26
30
|
|
27
31
|
- if Setting.per_user_locale
|
28
32
|
%script= render "languages"
|
data/lib/fat_free_crm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fat_free_crm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Dvorkin
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|