my_forum 0.0.1.beta58 → 0.0.1.beta59

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
  SHA1:
3
- metadata.gz: 05c8f7f4d57d4ce406ed103539a5b4c760c6f358
4
- data.tar.gz: 1d10d5fb2f2cd06525a46b8b5619b25626ea7b79
3
+ metadata.gz: 33cb921ec39477353de8563a342d5fafeb5d0327
4
+ data.tar.gz: 97e8d02057ad1bc47ad474640d6ce54544defa89
5
5
  SHA512:
6
- metadata.gz: c1b9bb783710d5b5582249a7f8085877494e17de72b0a8c71d076ace04b2dfba01ff79192ac91d19e6f0a45b84120ea528761bd7eebfb3b43f323f58eaeaeb2a
7
- data.tar.gz: d9527af6199e48e28ae55c1366ed145286a3ef73f9017550f180ef8f87bbfa39a3386f1d129a9fb21ebd3bd9a4ab926bc785e065efec070dae8e86693edd000f
6
+ metadata.gz: 4c0cba0f3e36cee68fa2570261d99c1aa6ebc618b0312d31562e0dad6e2e2741c690449621e1ff38ded96732feb1c8e71aad91c1f7d12186e35e0d74290345f7
7
+ data.tar.gz: ffd958912bb2bc66f0422d8c813c5c87b95ced6a727938c1020d32e40e7e5414f0cb7bc376348ac52f2cb56ff99f0e1320c22bcb2dd007d2a00d3e590fc2b09a
@@ -57,8 +57,9 @@ module MyForum
57
57
  end
58
58
 
59
59
  # Link
60
- text.gsub!(/\[url=(.*?)\](.*?)\[\/url\]/i) { link_to($2, $1, target: '_blank') }
61
- text.gsub!(/(http:\/\/[\S]+|www:\/\/[\S]+)/i) { link_to($1, $1, target: '_blank') }
60
+ # ActionController::Base.helpers.... - this method uses in controller, which don`t know link_to
61
+ text.gsub!(/\[url=(.*?)\](.*?)\[\/url\]/i) { ActionController::Base.helpers.link_to($2, $1, target: '_blank') }
62
+ text.gsub!(/(http:\/\/[\S]+|www:\/\/[\S]+)/i) { ActionController::Base.helpers.link_to($1, $1, target: '_blank') }
62
63
 
63
64
  text.html_safe
64
65
  end
@@ -1,3 +1,3 @@
1
1
  module MyForum
2
- VERSION = "0.0.1.beta58"
2
+ VERSION = "0.0.1.beta59"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_forum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta58
4
+ version: 0.0.1.beta59
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Omelchenko