interpret 1.1.0 → 1.1.1

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.
@@ -1,7 +1,7 @@
1
1
  module Interpret
2
2
 
3
3
  class Translation < I18n::Backend::ActiveRecord::Translation
4
- default_scope order('locale ASC')
4
+ default_scope lambda {order(arel_table[:locale].asc)}
5
5
  validates_uniqueness_of :key, :scope => :locale
6
6
  validates_presence_of :locale
7
7
  validate :key_format
@@ -10,7 +10,7 @@ module Interpret
10
10
  before_validation :downcase_key
11
11
  attr_accessible :stale
12
12
 
13
- scope :stale, where(:stale => true)
13
+ scope :stale, lambda { where(:stale => true) }
14
14
 
15
15
  private
16
16
 
@@ -23,6 +23,9 @@ module Interpret
23
23
  Interpret.logger = InterpretLogger.new(logfile)
24
24
  end
25
25
 
26
+ initializer "interpret.setup_assets_precompile" do |app|
27
+ app.config.assets.precompile += %w(interpret_style.css interpret.js)
28
+ end
26
29
 
27
30
  initializer "interpret.register_observer" do |app|
28
31
  #app.config.before_initialize do |app|
@@ -1,3 +1,3 @@
1
1
  module Interpret
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interpret
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-12 00:00:00.000000000 Z
12
+ date: 2012-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails