Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sermoa
committed
Dec 12, 2008
1 parent
7db759f
commit 4b7bb00
Showing
6 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "vendor/plugins/basic_model"] | ||
path = vendor/plugins/basic_model | ||
url = git://github.com/topfunky/basic_model.git | ||
[submodule "vendor/plugins/pdf_label_maker"] | ||
path = vendor/plugins/pdf_label_maker | ||
url = git://github.com/sermoa/pdf_label_maker.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
class Contact < BasicModel | ||
class Contact < BasicModel | ||
|
||
def full_name | ||
"#{first_name} #{last_name}" | ||
end | ||
|
||
def label_lines | ||
returning Array.new do |arr| | ||
arr << full_name | ||
address.split("\r\n").each{|line| arr << line} | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule pdf_label_maker
added at
446b2c