source: ruby/branches/0.5/app/models/encoding.rb

Last change on this file was 225, checked in by KOBAYASHI, Shinji, 15 years ago

implementing terminology services

File size: 230 bytes
Line 
1class 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
12end
Note: See TracBrowser for help on using the repository browser.