From 738a0e17eb2f7b6656e8a4a9fa58d4609bcc7eaa Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Sun, 22 Jul 2012 19:51:17 -0500 Subject: fix removed ruby tag in commit 890b9dd [ci skip] --- guides/source/engines.textile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'guides/source') diff --git a/guides/source/engines.textile b/guides/source/engines.textile index db23c1c584..11c837be32 100644 --- a/guides/source/engines.textile +++ b/guides/source/engines.textile @@ -706,17 +706,17 @@ end module Blorg::Concerns::Models::Post extend ActiveSupport::Concern - + # 'included do' causes the code within to be evaluated in the conext # where it is included, rather be executed in the module's context. included do attr_accessor :author_name belongs_to :author, :class_name => "User" - + before_save :set_author - + private - + def set_author self.author = User.find_or_create_by_name(author_name) end @@ -850,6 +850,7 @@ s.add_dependency "moo" To specify a dependency that should only be installed as a development dependency of the application, specify it like this: + s.add_development_dependency "moo" -- cgit v1.2.3