Class: RailsConnector::Channel
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- RailsConnector::Channel
- Defined in:
- app/models/rails_connector/channel.rb
Class Method Summary collapse
Class Method Details
.table_name ⇒ Object
7 8 9 |
# File 'app/models/rails_connector/channel.rb', line 7 def self.table_name "#{table_name_prefix}" "channels" end |
.with_prefix(prefix) ⇒ Object
18 19 20 |
# File 'app/models/rails_connector/channel.rb', line 18 def self.with_prefix(prefix) scoped.where(["channel_name LIKE ?", "#{prefix}%"]) end |