This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Category < ActiveRecord::Base | |
has_many :subcategories, :dependent => :destroy | |
has_many :users, :through => :subcategories | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Every style that will be repeated more than once should be written as a mixin | |
btn-states($btnColor) { | |
background-color: $btnColor; | |
&:hover { | |
background-color: darken($btnColor, 15%); | |
} | |
&:active { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BillingController < ApplicationController | |
def index | |
@companies = Company.includes(:transactions).merge(Transaction.pending) | |
end | |
end |