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 MyController < ActionController::Base | |
def sample | |
# define an action here | |
end | |
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
class PreferencesController < ApplicationController | |
def update | |
@subdomain = cookies[:subdomain_name] | |
@preference = Preference.find_by_subdomain_name(@subdomain) | |
if @preference.update_attributes(params[:preference]) | |
flash[:success] = "Preferences for #{params[:preference][:subdomain_name]} updated." | |
redirect_to spaces_path | |
else | |
@token = session[:token] |
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
GIT | |
remote: git://github.com/intridea/omniauth.git | |
revision: 610bcc1ada0489fb33b80e12c288f613f97f109d | |
ref: 610bcc1 | |
specs: | |
oa-core (0.3.0.rc1) | |
hashie | |
rack | |
oa-enterprise (0.3.0.rc1) | |
addressable (~> 2.2.6) |
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 WebApp | |
def call(env) | |
return [ | |
200, | |
{'Content-Type' => 'text/html'}, | |
['<a href="http://github.com/upstream/cobot_expiring_day_passes">cobot expiring day passes</a>'] | |
] | |
end | |
end |