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 UsersController < ApplicationController | |
respond_to :html, :json | |
def index | |
@json = User.all.to_gmaps4rails | |
respond_with @json | |
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
require 'yaml' | |
CAP = YAML.load_file("./config/deploy.yml") | |
require "bundler/capistrano" | |
set :bundle_cmd, "/usr/local/rvm/gems/ree-1.8.7-2011.03/bin/bundle" | |
set :bundle_without, [:development, :test] | |
default_run_options[:pty] = true # Must be set for the password prompt from git to work | |
set :repository, CAP["repository"] # Your clone URL |
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 RefineryPatch | |
def self.included(base) | |
base.send :helper_method, | |
:current_refinery_user, | |
:refinery_user_signed_in?, | |
:refinery_user? if base.respond_to? :helper_method | |
end | |
def current_refinery_user |
NewerOlder