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
<?php | |
$app_id = "APP_CLIENT_ID"; | |
$app_secret = "APP_SECRET"; | |
$app_url = "http://localhost/oauth_test"; | |
$app_scope = "api/clients:read"; | |
$sk_url = "https://SUBDOMAIN.salesking.eu"; | |
$code = $_REQUEST["code"]; | |
if(empty($code)) { # redirect to authorize url |
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
module KingForm | |
# Method for building forms that contain fields for associated models. | |
module NestedFormHelper | |
# Renders the form for nested objects defined via activerecord accepts_nested_attributes_for | |
# | |
# The associated argument can be either an object, or a collection of objects to be rendered. | |
# | |
# An options hash can be specified to override the default behaviors. |
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
# From http://blog.teamschnitzel.com/2007/05/14/haml-parsing-for-ruby-gettext | |
require 'gettext/tools/rgettext' | |
module HamlParser | |
module_function | |
def target?(file) | |
File.extname(file) == ".haml" | |
end | |