module BigBrotha

create_table :taboos do |t|

t.string :keyword
t.timestamps

end

create_table :taboo_posts do |t|

t.text :content
t.string :content_column
t.belongs_to :user
t.timestamps

end

Constants

VERSION

Public Class Methods

add_taboo!(keyword) click to toggle source
# File lib/bigbrotha.rb, line 16
def self.add_taboo!(keyword)
  Taboo.create!(keyword: keyword)
end
configure() { |config| ... } click to toggle source
# File lib/bigbrotha.rb, line 12
def self.configure
  yield(Config.new)
end
find_taboo(keyword) click to toggle source
# File lib/bigbrotha.rb, line 24
def self.find_taboo(keyword)
  Taboo.find_by(keyword: keyword)
end
remove_taboo(keyword) click to toggle source
# File lib/bigbrotha.rb, line 20
def self.remove_taboo(keyword)
  Taboo.destroy_all(keyword: keyword)
end