Skip to content

Instantly share code, notes, and snippets.

View danieltamiosso's full-sized avatar

Daniel Tamiosso danieltamiosso

View GitHub Profile
get '/:nome_site/marketing' do
erb_theme :'marketing_gift', user.layout
end
get '/:site' do
erb_client :'client_options'
end
def erb_theme(template, layout, options={})
erb template, options.merge(:layout => layout)
end
CLIENT_THEME = :'classic-theme/layout'
def erb_client(template, options={})
erb template, options.merge(:layout => CLIENT_THEME)
end
@danieltamiosso
danieltamiosso / wordpress_to_wind.rb
Created July 28, 2010 13:31
Plugin to Wind for Wordpress importer
#
# Wind Wordpress Importer
#
# To install this plugin do you need copy the file to Wind plugins directory.
# An admin widget will be crated to import WordPress eXtended RSS file.
#
# This plugin use hurricane gem [http://github.com/danieltamiosso/hurricane],
# [gem install hurricane] to install it.
#
public boolean possuiPermissaoDeAcesso(Aplicativo aplicativo){
if (aplicativo.liberadoParaOUsuario(this)){
Session.login();
return true;
}
return false;
}