e9_tags 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,5 +6,5 @@ en:
6
6
  tag_context_name: Context
7
7
  tag_context_visible: "Tags created with this context will be searchable and visible on their tagged content."
8
8
  tag_context_hidden: "Tags created with this context will be unsearchable and will not be visible on their tagged content."
9
- tag_instructions: "<p>Tags are words or phrases that describe or classify the content on this page.</p><p>Context allows you to contextualize each tag you enter. For a tag of \"coca cola\" you might give it a context of \"brand\", or you could give it a context of \"soda\".</p><p>Enter a tag, click Add. Repeat to add more.</p><p>Tags suffixed with a * are not publically visible or searchable, making them suitable for organizational purposes.</p>"
9
+ tag_instructions: "<p>Tags are words or phrases that describe or classify the content on this page.</p><p>Context allows you to contextualize each tag you enter. For a tag of \"coca cola\" you might give it a context of \"brand\", or you could give it a context of \"soda\".</p><p>Enter a tag, click Add. Repeat to add more.</p><p>To use a tag for organizational purposes, create a \"context\" suffixed with an asterisk like \"Hidden*\" - Any tags belonging to this special context will not be publically visible or searchable.</p>"
10
10
  delete_tag_link_instructions: Click to remove this tag
@@ -20,7 +20,7 @@ module E9Tags::Rack
20
20
  # NOTE this select is stolen from Arel::SelectManager's deprecated to_a method, but since Arel has been re-written
21
21
  # (and even before that) it'd probably be smarter here to avoid arel tables and just use AR and to_json
22
22
  #
23
- terms = ::ActiveRecord::Base.send(:select, relation.to_sql, 'Tag Context Autocomplete').map do |row|
23
+ terms = ::ActiveRecord::Base.connection.send(:select, relation.to_sql, 'Tag Context Autocomplete').map do |row|
24
24
  unescaped_context = E9Tags.unescape_context(row['context'])
25
25
 
26
26
  { :label => "#{unescaped_context} - #{row['count']}", :value => unescaped_context, :count => row['count'] }
@@ -1,3 +1,3 @@
1
1
  module E9Tags
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: e9_tags
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.9
5
+ version: 0.0.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Travis Cox
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-21 00:00:00 -04:00
13
+ date: 2011-05-02 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency