kuhsaft 1.4.2 → 1.4.3

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.
@@ -37,10 +37,6 @@ class Kuhsaft::Page < ActiveRecord::Base
37
37
 
38
38
  arr
39
39
  end
40
-
41
- def find_by_url(url)
42
- send "find_by_#{locale_attr(:url)}", url
43
- end
44
40
  end
45
41
 
46
42
  def without_self
@@ -20,7 +20,7 @@ module Kuhsaft
20
20
  send "#{attr_name}_#{I18n.locale}=", val
21
21
  end
22
22
 
23
- define_method "find_by_#{attr_name}" do |val|
23
+ define_singleton_method "find_by_#{attr_name}" do |val|
24
24
  send "find_by_#{attr_name}_#{I18n.locale}", val
25
25
  end
26
26
  end
@@ -34,7 +34,5 @@ module Kuhsaft
34
34
  def locale_attr attr_name
35
35
  "#{attr_name}_#{I18n.locale}"
36
36
  end
37
-
38
-
39
37
  end
40
38
  end
@@ -1,3 +1,3 @@
1
1
  module Kuhsaft
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.3"
3
3
  end
@@ -61,8 +61,8 @@ describe Kuhsaft::Translatable do
61
61
  end
62
62
 
63
63
  it 'delegates simple dynamic finders' do
64
- model.should_receive(:find_by_name_en).with('Max')
65
- model.find_by_name('Max')
64
+ Demo.should_receive(:find_by_name_en).with('Max')
65
+ Demo.find_by_name('Max')
66
66
  end
67
67
  end
68
68
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuhsaft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-05-14 00:00:00.000000000 Z
16
+ date: 2013-05-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rspec
@@ -541,7 +541,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
541
541
  version: '0'
542
542
  segments:
543
543
  - 0
544
- hash: -815842758708708737
544
+ hash: -429433574673147014
545
545
  required_rubygems_version: !ruby/object:Gem::Requirement
546
546
  none: false
547
547
  requirements:
@@ -550,10 +550,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
550
550
  version: '0'
551
551
  segments:
552
552
  - 0
553
- hash: -815842758708708737
553
+ hash: -429433574673147014
554
554
  requirements: []
555
555
  rubyforge_project: kuhsaft
556
- rubygems_version: 1.8.25
556
+ rubygems_version: 1.8.24
557
557
  signing_key:
558
558
  specification_version: 3
559
559
  summary: A tool that helps you to manage your content within your app.