This file contains hidden or 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
| module ApplicationHelper | |
| def arbre(content = nil, &block) | |
| Arbre::Context.new({ contents: (capture(&content).html_safe if content) }, self, &block).to_s | |
| end | |
| end |
This file contains hidden or 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
| return unless Rails.env.development? | |
| Bullet.enable = true | |
| Bullet.console = true | |
| Bullet.add_footer = true | |
| Bullet.rails_logger = true |
This file contains hidden or 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 ApplicationPolicy | |
| attr_reader :user, :record, :error_message | |
| def initialize(user, record) | |
| @user = user | |
| @record = record | |
| end | |
| def index? |
This file contains hidden or 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
| bundle config build.nokogiri --use-system-libraries |
This file contains hidden or 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
| if defined?(PryByebug) | |
| Pry.commands.alias_command 'c', 'continue' | |
| Pry.commands.alias_command 's', 'step' | |
| Pry.commands.alias_command 'n', 'next' | |
| Pry.commands.alias_command 'f', 'finish' | |
| end |
This file contains hidden or 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
| gem: --no-document |
This file contains hidden or 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
| # move existing files to Google Drive | |
| mv ~/.zshrc ~/Google\ Drive/Dotfiles/zshrc | |
| mv ~/.oh-my-zsh ~/Google\ Drive/Dotfiles/oh-my-zsh | |
| # symlink file back to your local directory | |
| ln -s ~/Google\ Drive/Dotfiles/zshrc ~/.zshrc | |
| ln -s ~/Google\ Drive/Dotfiles/oh-my-zsh ~/.oh-my-zsh |