Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README
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'

25 changes: 25 additions & 0 deletions lib/beast/plugins/iphone.rb
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

0 comments on commit 339010f

Please sign in to comment.