diff options
author | Agis Anastasopoulos <corestudiosinc@gmail.com> | 2012-11-16 12:28:16 +0200 |
---|---|---|
committer | Agis Anastasopoulos <corestudiosinc@gmail.com> | 2012-11-16 12:28:16 +0200 |
commit | da7febdccbd2e0122006a4f5b4e8245e4ce4824e (patch) | |
tree | 438f6f9ec1cb5c81bc5d991d49dc9a719a16235d /guides | |
parent | 6f54aac0489ac9be2e86c057ef5353f5c87620d9 (diff) | |
download | rails-da7febdccbd2e0122006a4f5b4e8245e4ce4824e.tar.gz rails-da7febdccbd2e0122006a4f5b4e8245e4ce4824e.tar.bz2 rails-da7febdccbd2e0122006a4f5b4e8245e4ce4824e.zip |
Switch to 1.9 hash syntax (guides)
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/plugins.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/plugins.md b/guides/source/plugins.md index 263f5b1351..c657281741 100644 --- a/guides/source/plugins.md +++ b/guides/source/plugins.md @@ -237,7 +237,7 @@ end # test/dummy/app/models/wickwall.rb class Wickwall < ActiveRecord::Base - acts_as_yaffle :yaffle_text_field => :last_tweet + acts_as_yaffle yaffle_text_field: :last_tweet end ``` @@ -402,7 +402,7 @@ Gem plugins currently in development can easily be shared from any Git repositor commit the code to a Git repository (like GitHub) and add a line to the Gemfile of the application in question: ```ruby -gem 'yaffle', :git => 'git://github.com/yaffle_watcher/yaffle.git' +gem 'yaffle', git: 'git://github.com/yaffle_watcher/yaffle.git' ``` After running `bundle install`, your gem functionality will be available to the application. |