<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AuthLogic is awesome!</title>
	<atom:link href="http://iain.nl/2008/11/authlogic-is-awesome/feed/" rel="self" type="application/rss+xml" />
	<link>http://iain.nl/2008/11/authlogic-is-awesome/</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 12:36:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Amiruddin Nagri</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-780</link>
		<dc:creator>Amiruddin Nagri</dc:creator>
		<pubDate>Thu, 10 Jun 2010 09:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-780</guid>
		<description>I am definitely late for the party, a year late, anyways.

I am using authlogic 2.1.5. 
When I try to use the above sample code, it blows out giving the error message 

undefined method `has_attribute?&#039; for #
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:13:in `user_session&#039;
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:17:in `login&#039;
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:58:

Looks like the session implementation has been changed in the latest version. Any awesome solution from the awesome-authlogic to avoid this ?</description>
		<content:encoded><![CDATA[<p>I am definitely late for the party, a year late, anyways.</p>
<p>I am using authlogic 2.1.5.<br />
When I try to use the above sample code, it blows out giving the error message </p>
<p>undefined method `has_attribute?&#8217; for #<br />
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:13:in `user_session&#8217;<br />
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:17:in `login&#8217;<br />
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:58:</p>
<p>Looks like the session implementation has been changed in the latest version. Any awesome solution from the awesome-authlogic to avoid this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amiruddin Nagri</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-1289</link>
		<dc:creator>Amiruddin Nagri</dc:creator>
		<pubDate>Thu, 10 Jun 2010 09:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-1289</guid>
		<description>I am definitely late for the party, a year late, anyways.

I am using authlogic 2.1.5. 
When I try to use the above sample code, it blows out giving the error message 

undefined method `has_attribute?&#039; for #
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:13:in `user_session&#039;
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:17:in `login&#039;
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:58:

Looks like the session implementation has been changed in the latest version. Any awesome solution from the awesome-authlogic to avoid this ?</description>
		<content:encoded><![CDATA[<p>I am definitely late for the party, a year late, anyways.</p>
<p>I am using authlogic 2.1.5.<br />
When I try to use the above sample code, it blows out giving the error message </p>
<p>undefined method `has_attribute?&#8217; for #<br />
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:13:in `user_session&#8217;<br />
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:17:in `login&#8217;<br />
/home/xuser/myprojects/xproject/spec/controllers/users_controller_spec.rb:58:</p>
<p>Looks like the session implementation has been changed in the latest version. Any awesome solution from the awesome-authlogic to avoid this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iain</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-553</link>
		<dc:creator>Iain</dc:creator>
		<pubDate>Tue, 13 Oct 2009 16:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-553</guid>
		<description>Authlogic is amazing for authentication, it simplifies and provides a nice, unobtrusive library for rails applications.
And I happened to across this post, thinking of writing tests for it.
Thanks for the nice blog.</description>
		<content:encoded><![CDATA[<p>Authlogic is amazing for authentication, it simplifies and provides a nice, unobtrusive library for rails applications.<br />
And I happened to across this post, thinking of writing tests for it.<br />
Thanks for the nice blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iain</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-1288</link>
		<dc:creator>Iain</dc:creator>
		<pubDate>Tue, 13 Oct 2009 16:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-1288</guid>
		<description>Authlogic is amazing for authentication, it simplifies and provides a nice, unobtrusive library for rails applications.
And I happened to across this post, thinking of writing tests for it.
Thanks for the nice blog.</description>
		<content:encoded><![CDATA[<p>Authlogic is amazing for authentication, it simplifies and provides a nice, unobtrusive library for rails applications.<br />
And I happened to across this post, thinking of writing tests for it.<br />
Thanks for the nice blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GlennR</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-269</link>
		<dc:creator>GlennR</dc:creator>
		<pubDate>Fri, 08 May 2009 10:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-269</guid>
		<description>Juliens solution worked too. 

I found I needed to stub the :record method too ;

&lt;pre&gt;
def user_session(stubs = {}, user_stubs = {})
  @user_session &#124;&#124;= mock_model(UserSession, {:user =&gt; current_user(user_stubs), :record =&gt; true}.merge(stubs))
end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Juliens solution worked too. </p>
<p>I found I needed to stub the :record method too ;</p>
<pre>
def user_session(stubs = {}, user_stubs = {})
  @user_session ||= mock_model(UserSession, {:user =&gt; current_user(user_stubs), :record =&gt; true}.merge(stubs))
end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: GlennR</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-1287</link>
		<dc:creator>GlennR</dc:creator>
		<pubDate>Fri, 08 May 2009 10:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-1287</guid>
		<description>Juliens solution worked too. 

I found I needed to stub the :record method too ;

&lt;pre&gt;
def user_session(stubs = {}, user_stubs = {})
  @user_session &#124;&#124;= mock_model(UserSession, {:user =&gt; current_user(user_stubs), :record =&gt; true}.merge(stubs))
end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Juliens solution worked too. </p>
<p>I found I needed to stub the :record method too ;</p>
<pre>
def user_session(stubs = {}, user_stubs = {})
  @user_session ||= mock_model(UserSession, {:user =&gt; current_user(user_stubs), :record =&gt; true}.merge(stubs))
end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-262</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 23 Mar 2009 18:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-262</guid>
		<description>I have been using Authlogic successfully on a prototype of a website that I am creating, but am a little concerned about the behavior of the authentication system with regard to the browser cache. It seems that after I have logged a user in, and then log out, I can hit the back button and go right back to the last logged-in page because the browser stored it in the cache. Is there an easy way to avoid this?</description>
		<content:encoded><![CDATA[<p>I have been using Authlogic successfully on a prototype of a website that I am creating, but am a little concerned about the behavior of the authentication system with regard to the browser cache. It seems that after I have logged a user in, and then log out, I can hit the back button and go right back to the last logged-in page because the browser stored it in the cache. Is there an easy way to avoid this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-1286</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 23 Mar 2009 18:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-1286</guid>
		<description>I have been using Authlogic successfully on a prototype of a website that I am creating, but am a little concerned about the behavior of the authentication system with regard to the browser cache. It seems that after I have logged a user in, and then log out, I can hit the back button and go right back to the last logged-in page because the browser stored it in the cache. Is there an easy way to avoid this?</description>
		<content:encoded><![CDATA[<p>I have been using Authlogic successfully on a prototype of a website that I am creating, but am a little concerned about the behavior of the authentication system with regard to the browser cache. It seems that after I have logged a user in, and then log out, I can hit the back button and go right back to the last logged-in page because the browser stored it in the cache. Is there an easy way to avoid this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikker</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-254</link>
		<dc:creator>Mikker</dc:creator>
		<pubDate>Mon, 23 Feb 2009 13:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-254</guid>
		<description>This is what I ended up doing. I&#039;m not completely sure if I&#039;m all crazy about it. But it seems to kinda work:

&lt;pre lang=&quot;ruby&quot;&gt;def login(factory = :user)
  @current_user = Factory(factory)
  @current_user_session = mock_model(UserSession, {:record =&gt; current_user})
  UserSession.any_instance.stubs(:find).returns(current_user_session)
  controller.stubs(:current_user).returns(current_user)
end

def admin_login
  login(:admin)
end&lt;/pre&gt;

Using &lt;a href=&quot;http://github.com/bilson/padlock_authorization/tree/master&quot; rel=&quot;nofollow&quot;&gt;padlock&lt;/a&gt; for authorization and &lt;a href=&quot;http://github.com/thoughtbot/factory_girl/tree/master&quot; rel=&quot;nofollow&quot;&gt;factory_girl&lt;/a&gt; for factories.

&lt;pre lang=&quot;ruby&quot;&gt;Factory.define :user do &#124;u&#124;
  u.sequence(:email) { &#124;n&#124; &quot;bangbang_#{n}@example.com&quot; }
  u.password &#039;foobar0123&#039;
  u.password_confirmation &#039;foobar0123&#039;
end

Factory.define :admin, :parent =&gt; :user do &#124;a&#124;
  a.roles { [Factory(:admin_role)] }
end

Factory.define(:admin_role, :class =&gt; Role) do &#124;role&#124;
  role.name &#039;admin&#039;
  role.authorizable { Factory(:app) }
end&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This is what I ended up doing. I&#8217;m not completely sure if I&#8217;m all crazy about it. But it seems to kinda work:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">def</span> login<span style="color:#006600; font-weight:bold;">&#40;</span>factory = <span style="color:#ff3333; font-weight:bold;">:user</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#0066ff; font-weight:bold;">@current_user</span> = Factory<span style="color:#006600; font-weight:bold;">&#40;</span>factory<span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#0066ff; font-weight:bold;">@current_user_session</span> = mock_model<span style="color:#006600; font-weight:bold;">&#40;</span>UserSession, <span style="color:#006600; font-weight:bold;">&#123;</span>:record =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; current_user<span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  UserSession.<span style="color:#9900CC;">any_instance</span>.<span style="color:#9900CC;">stubs</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:find</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">returns</span><span style="color:#006600; font-weight:bold;">&#40;</span>current_user_session<span style="color:#006600; font-weight:bold;">&#41;</span>
  controller.<span style="color:#9900CC;">stubs</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:current_user</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">returns</span><span style="color:#006600; font-weight:bold;">&#40;</span>current_user<span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">def</span> admin_login
  login<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:admin</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Using <a target="_blank" href="http://github.com/bilson/padlock_authorization/tree/master"  rel="nofollow">padlock</a> for authorization and <a target="_blank" href="http://github.com/thoughtbot/factory_girl/tree/master"  rel="nofollow">factory_girl</a> for factories.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">Factory.<span style="color:#9900CC;">define</span> <span style="color:#ff3333; font-weight:bold;">:user</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>u<span style="color:#006600; font-weight:bold;">|</span>
  u.<span style="color:#9900CC;">sequence</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:email</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>n<span style="color:#006600; font-weight:bold;">|</span> <span style="color:#996600;">&quot;bangbang_#{n}@example.com&quot;</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
  u.<span style="color:#9900CC;">password</span> <span style="color:#996600;">'foobar0123'</span>
  u.<span style="color:#9900CC;">password_confirmation</span> <span style="color:#996600;">'foobar0123'</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
Factory.<span style="color:#9900CC;">define</span> <span style="color:#ff3333; font-weight:bold;">:admin</span>, <span style="color:#ff3333; font-weight:bold;">:parent</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:user</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>a<span style="color:#006600; font-weight:bold;">|</span>
  a.<span style="color:#9900CC;">roles</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>Factory<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:admin_role</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
Factory.<span style="color:#9900CC;">define</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:admin_role</span>, <span style="color:#ff3333; font-weight:bold;">:class</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; Role<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>role<span style="color:#006600; font-weight:bold;">|</span>
  role.<span style="color:#9900CC;">name</span> <span style="color:#996600;">'admin'</span>
  role.<span style="color:#9900CC;">authorizable</span> <span style="color:#006600; font-weight:bold;">&#123;</span> Factory<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:app</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Mikker</title>
		<link>http://iain.nl/2008/11/authlogic-is-awesome/comment-page-1/#comment-1285</link>
		<dc:creator>Mikker</dc:creator>
		<pubDate>Mon, 23 Feb 2009 13:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=334#comment-1285</guid>
		<description>This is what I ended up doing. I&#039;m not completely sure if I&#039;m all crazy about it. But it seems to kinda work:

&lt;pre lang=&quot;ruby&quot;&gt;def login(factory = :user)
  @current_user = Factory(factory)
  @current_user_session = mock_model(UserSession, {:record =&gt; current_user})
  UserSession.any_instance.stubs(:find).returns(current_user_session)
  controller.stubs(:current_user).returns(current_user)
end

def admin_login
  login(:admin)
end&lt;/pre&gt;

Using &lt;a href=&quot;http://github.com/bilson/padlock_authorization/tree/master&quot; rel=&quot;nofollow&quot;&gt;padlock&lt;/a&gt; for authorization and &lt;a href=&quot;http://github.com/thoughtbot/factory_girl/tree/master&quot; rel=&quot;nofollow&quot;&gt;factory_girl&lt;/a&gt; for factories.

&lt;pre lang=&quot;ruby&quot;&gt;Factory.define :user do &#124;u&#124;
  u.sequence(:email) { &#124;n&#124; &quot;bangbang_#{n}@example.com&quot; }
  u.password &#039;foobar0123&#039;
  u.password_confirmation &#039;foobar0123&#039;
end

Factory.define :admin, :parent =&gt; :user do &#124;a&#124;
  a.roles { [Factory(:admin_role)] }
end

Factory.define(:admin_role, :class =&gt; Role) do &#124;role&#124;
  role.name &#039;admin&#039;
  role.authorizable { Factory(:app) }
end&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This is what I ended up doing. I&#8217;m not completely sure if I&#8217;m all crazy about it. But it seems to kinda work:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">def</span> login<span style="color:#006600; font-weight:bold;">&#40;</span>factory = <span style="color:#ff3333; font-weight:bold;">:user</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#0066ff; font-weight:bold;">@current_user</span> = Factory<span style="color:#006600; font-weight:bold;">&#40;</span>factory<span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#0066ff; font-weight:bold;">@current_user_session</span> = mock_model<span style="color:#006600; font-weight:bold;">&#40;</span>UserSession, <span style="color:#006600; font-weight:bold;">&#123;</span>:record =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; current_user<span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  UserSession.<span style="color:#9900CC;">any_instance</span>.<span style="color:#9900CC;">stubs</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:find</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">returns</span><span style="color:#006600; font-weight:bold;">&#40;</span>current_user_session<span style="color:#006600; font-weight:bold;">&#41;</span>
  controller.<span style="color:#9900CC;">stubs</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:current_user</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">returns</span><span style="color:#006600; font-weight:bold;">&#40;</span>current_user<span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">def</span> admin_login
  login<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:admin</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Using <a target="_blank" href="http://github.com/bilson/padlock_authorization/tree/master"  rel="nofollow">padlock</a> for authorization and <a target="_blank" href="http://github.com/thoughtbot/factory_girl/tree/master"  rel="nofollow">factory_girl</a> for factories.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">Factory.<span style="color:#9900CC;">define</span> <span style="color:#ff3333; font-weight:bold;">:user</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>u<span style="color:#006600; font-weight:bold;">|</span>
  u.<span style="color:#9900CC;">sequence</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:email</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>n<span style="color:#006600; font-weight:bold;">|</span> <span style="color:#996600;">&quot;bangbang_#{n}@example.com&quot;</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
  u.<span style="color:#9900CC;">password</span> <span style="color:#996600;">'foobar0123'</span>
  u.<span style="color:#9900CC;">password_confirmation</span> <span style="color:#996600;">'foobar0123'</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
Factory.<span style="color:#9900CC;">define</span> <span style="color:#ff3333; font-weight:bold;">:admin</span>, <span style="color:#ff3333; font-weight:bold;">:parent</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#ff3333; font-weight:bold;">:user</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>a<span style="color:#006600; font-weight:bold;">|</span>
  a.<span style="color:#9900CC;">roles</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>Factory<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:admin_role</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
Factory.<span style="color:#9900CC;">define</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:admin_role</span>, <span style="color:#ff3333; font-weight:bold;">:class</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; Role<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>role<span style="color:#006600; font-weight:bold;">|</span>
  role.<span style="color:#9900CC;">name</span> <span style="color:#996600;">'admin'</span>
  role.<span style="color:#9900CC;">authorizable</span> <span style="color:#006600; font-weight:bold;">&#123;</span> Factory<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:app</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
	</item>
</channel>
</rss>
