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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25e31e5cc09622f338148fcf35500de072cb50ea
4
- data.tar.gz: 22f374343d5c00e6313e89162759b2f98017b8ab
3
+ metadata.gz: ce186159c267064d32924e1116da602a875ea3de
4
+ data.tar.gz: ff0fd2379f861a86297a01c7c0499aee392410ac
5
5
  SHA512:
6
- metadata.gz: 5cc1ac5c20a97f51cfc9a71e8b03293b46e21c3d981c338de12896d3a6de94843ac9bf4c873a8072387fe137fb4c83845ca5dee115b87b7f05152112b279e7ff
7
- data.tar.gz: 2a3e8cc15ba763ac680e469eb83e015da7624a7d097e813227e8ffda42cc2c475f92246f1fb7a0d8cd11a53b3a5dae365e60136c415f807b5bde4a790da91821
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
- = "#{t :phone}: <b>#{@user.phone}</b>" unless @user.phone.blank?
25
- = "#{t :mobile}: <b>#{@user.mobile}</b>" unless @user.mobile.blank?
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"
@@ -7,7 +7,7 @@ module FatFreeCRM
7
7
  module VERSION #:nodoc:
8
8
  MAJOR = 0
9
9
  MINOR = 13
10
- TINY = 5
10
+ TINY = 6
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
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.5
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-01-22 00:00:00.000000000 Z
14
+ date: 2015-02-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails