Class: RailsConnector::Channel

Inherits:
AbstractModel
  • Object
show all
Defined in:
app/models/rails_connector/channel.rb

Class Method Summary collapse

Class Method Details

.table_nameObject



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