source:
ruby/trunk/app/models/encoding.rb@
406
Last change on this file since 406 was 299, checked in by , 15 years ago | |
---|---|
File size: 230 bytes |
Line | |
---|---|
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.