interpret 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/interpret/translation.rb +2 -2
- data/lib/interpret/engine.rb +3 -0
- data/lib/interpret/version.rb +1 -1
- metadata +2 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
module Interpret
|
2
2
|
|
3
3
|
class Translation < I18n::Backend::ActiveRecord::Translation
|
4
|
-
default_scope order(
|
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
|
|
data/lib/interpret/engine.rb
CHANGED
@@ -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|
|
data/lib/interpret/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2012-07-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|