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
| PADRINO_ENV = 'test' unless defined?(PADRINO_ENV) | |
| require File.expand_path(File.dirname(__FILE__) + "/../config/boot") | |
| module Padrino | |
| module RspecHelpers | |
| def self.registered(app) | |
| app.set :delivery_method, :test |
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
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * ExpressionEngine - by EllisLab | |
| * | |
| * @package ExpressionEngine | |
| * @author ExpressionEngine Dev Team | |
| * @copyright Copyright (c) 2003 - 2011, EllisLab, Inc. | |
| * @license http://expressionengine.com/user_guide/license.html | |
| * @link http://expressionengine.com |
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
| <?php | |
| $category_group = 9; | |
| $site_id = 1; | |
| $state_list = array( | |
| 'AL'=>"Alabama", | |
| 'AK'=>"Alaska", | |
| 'AZ'=>"Arizona", | |
| 'AR'=>"Arkansas", |
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
| padrino rake erd |
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 'rails-erd', :group => 'development' |
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
| task :erd do | |
| require "rails_erd/diagram/graphviz" | |
| RailsERD::Diagram::Graphviz.create( | |
| filename: Padrino.root('docs/erd'), | |
| attributes: [:foreign_keys, :primary_keys, :content, :timestamps, :inheritance] | |
| ) | |
| 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
| class Houdini { | |
| //precious! my precious.... | |
| protected static $data = array(); | |
| // other super awesome code ... | |
| } |
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 Houdini { | |
| // other super awesome code ... | |
| } | |
| $instance = new Houdini; |
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 MyClass { | |
| public static my_var; | |
| } |
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
| {exp:houdini:fetch key="categories"} |