mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
branch : moe extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%405
10 lines
219 B
Ruby
10 lines
219 B
Ruby
class ServerKey < ActiveRecord::Base
|
|
def self.[](key)
|
|
begin
|
|
ActiveRecord::Base.connection.select_value("SELECT value FROM server_keys WHERE name = '#{key}'")
|
|
rescue Exception
|
|
nil
|
|
end
|
|
end
|
|
end
|