source:
ruby/branches/0.5/app/models/encoding.rb@
271
Last change on this file since 271 was 225, checked in by , 15 years ago | |
---|---|
File size: 230 bytes |
Rev | Line | |
---|---|---|
[225] | 1 | class Encoding < ActiveRecord::Base |
2 | has_many :encoding_aliases | |
3 | ||
4 | def valid_encoding?(enc) | |
5 | if Encoding.find_by_name(enc) || | |
6 | Encoding.find_by_alias(enc) | |
7 | return true | |
8 | else | |
9 | return false | |
10 | end | |
11 | end | |
12 | end |
Note:
See TracBrowser
for help on using the repository browser.