ruhl 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ruhl/rails/active_record_presenter.rb +7 -3
- data/lib/ruhl/rails/ruhl_presenter.rb +1 -1
- data/ruhl.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.1
|
@@ -8,11 +8,15 @@ module ActiveRecordPresenter
|
|
8
8
|
presentee.errors.full_messages
|
9
9
|
end
|
10
10
|
|
11
|
-
# Pass presenter method call to model so you don't have to
|
12
|
-
# redefine every model method in the presenter class.
|
13
11
|
def method_missing(name, *args)
|
14
12
|
if presentee.respond_to?(name)
|
13
|
+
# Pass presenter method call to model so you don't have to
|
14
|
+
# redefine every model method in the presenter class.
|
15
15
|
presentee.send(name, *args)
|
16
|
+
elsif context.respond_to?(name)
|
17
|
+
# Instead of saying context.link_to('Some site', some_path)
|
18
|
+
# can just use link_to
|
19
|
+
context.send(name, *args)
|
16
20
|
end
|
17
21
|
end
|
18
22
|
|
@@ -54,4 +58,4 @@ module ActiveRecordPresenter
|
|
54
58
|
end
|
55
59
|
end
|
56
60
|
end
|
57
|
-
end
|
61
|
+
end
|
data/ruhl.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ruhl}
|
8
|
-
s.version = "0.12.
|
8
|
+
s.version = "0.12.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrew Stone"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-15}
|
13
13
|
s.description = %q{Make your HTML dynamic with the addition of a data-ruhl attribute.}
|
14
14
|
s.email = %q{andy@stonean.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruhl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Stone
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-15 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|