-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.codeeg.com/beast@65 db318f2f-d136-0410-a6fa-a44e35a74f1a
- Loading branch information
cyu
committed
Sep 30, 2007
0 parents
commit 339010f
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
PRIVATE MESSAGE PLUGIN | ||
============================== | ||
|
||
A plugin that adds iphone support to Beast. | ||
|
||
|
||
INSTALL INSTRUCTIONS | ||
============================== | ||
|
||
1) Install this plugin: | ||
|
||
cd vendor/beast | ||
svn export http://svn.codeeg.com/beast/iphone | ||
|
||
2) Run the following command: | ||
|
||
script/runner 'Beast::Plugins::IPhone.install' | ||
|
||
3) Add the plugin to the list of Beast plugins to be initialized. If you this is | ||
the first Beast plugin you can initialize plugins by creating a plugins.rb file | ||
in config/initializers and add the following line(s): | ||
|
||
Beast::Plugin.initialize_plugins 'Beast::Plugins::IPhone' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module Beast | ||
module Plugins | ||
|
||
class IPhone < Beast::Plugin | ||
|
||
author 'Calvin Yu - blog.codeeg.com' | ||
version '0001' | ||
homepage "http://boardista.com" | ||
notes "iPhone support for Beast" | ||
|
||
%w( controllers helpers models ).each do |dir| | ||
path = File.expand_path(File.join(plugin_path, 'app', dir)) | ||
if File.exist?(path) && !Dependencies.load_paths.include?(path) | ||
Dependencies.load_paths << path | ||
end | ||
end | ||
|
||
def initialize | ||
super | ||
end | ||
|
||
end | ||
|
||
end | ||
end |