Class: Deb::Account
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Deb::Account
- Defined in:
- app/models/deb/account.rb
Class Method Summary collapse
-
.[](some_shot_name) ⇒ Object
attr_accessible :name, :kind, :short_name, :contra.
Class Method Details
.[](some_shot_name) ⇒ Object
attr_accessible :name, :kind, :short_name, :contra
11 12 13 |
# File 'app/models/deb/account.rb', line 11 def self.[](some_shot_name) where(short_name: some_shot_name).first end |