<feed xmlns='http://www.w3.org/2005/Atom'>
<title>leap_web.git/engines/support/app/controllers, branch 0.5.2</title>
<subtitle>[leap_web] 
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/'/>
<entry>
<title>tickets: fix bug that allow index of other users</title>
<updated>2014-06-03T08:12:17+00:00</updated>
<author>
<name>elijah</name>
<email>elijah@riseup.net</email>
</author>
<published>2014-06-03T08:12:17+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=366ff2e7f5ecd44aab1cddfd0a7b73ab7b213e85'/>
<id>366ff2e7f5ecd44aab1cddfd0a7b73ab7b213e85</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix flash for creating anonymous tickets</title>
<updated>2014-05-29T18:11:29+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-05-29T18:11:29+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=9e3be686ff2751707369894382293924420830d0'/>
<id>9e3be686ff2751707369894382293924420830d0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tickets: structure i18n</title>
<updated>2014-05-26T11:00:05+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-05-22T12:57:29+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=19bce0f114180f355f0df367cf6d21bd957734a6'/>
<id>19bce0f114180f355f0df367cf6d21bd957734a6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>flash_for with_errors option displays error messages</title>
<updated>2014-05-26T10:59:26+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-05-20T11:50:32+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=560eb039f4778257559395583e1233d052d44127'/>
<id>560eb039f4778257559395583e1233d052d44127</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Controller#flash_for instead of FlashResponder</title>
<updated>2014-05-26T10:59:26+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-05-20T11:09:59+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=c10f9311678ff2183443bc03e153b30d3b68ff74'/>
<id>c10f9311678ff2183443bc03e153b30d3b68ff74</id>
<content type='text'>
FlashResponder added a flash before responding. However at the point of responding objects have already been saved. So there is no way to test if they were changed.

Now instead we can call
  flash_for resource
before
  resource.save

and it will add the flash messages only if the resource was actually changed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
FlashResponder added a flash before responding. However at the point of responding objects have already been saved. So there is no way to test if they were changed.

Now instead we can call
  flash_for resource
before
  resource.save

and it will add the flash messages only if the resource was actually changed.
</pre>
</div>
</content>
</entry>
<entry>
<title>split up and refactor TicketController#update</title>
<updated>2014-05-26T10:59:26+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-05-20T10:30:55+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=467dd712a19d48fc653cfc0e58201e6657d2c1f9'/>
<id>467dd712a19d48fc653cfc0e58201e6657d2c1f9</id>
<content type='text'>
close and open actions for plain opening and closing the tickets
respond_with so fields are not cleared on invalid update

the custom actions are not strictly restful. But adding a subresource felt like too much overhead and is conceptually hard to grasp (so we destroy the openess of the ticket to close it?).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
close and open actions for plain opening and closing the tickets
respond_with so fields are not cleared on invalid update

the custom actions are not strictly restful. But adding a subresource felt like too much overhead and is conceptually hard to grasp (so we destroy the openess of the ticket to close it?).
</pre>
</div>
</content>
</entry>
<entry>
<title>FlashResponder will automagically add flash messages</title>
<updated>2014-05-26T10:59:26+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-05-20T07:13:25+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=730e31017109994c24db431fde12f575ed5c1467'/>
<id>730e31017109994c24db431fde12f575ed5c1467</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>prefill ticket form from the model - fixes #5657</title>
<updated>2014-05-13T12:02:15+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-05-13T11:52:16+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=81a4a0527639fe4b560b8d98f977f6dbac67bb41'/>
<id>81a4a0527639fe4b560b8d98f977f6dbac67bb41</id>
<content type='text'>
email and regarding user fields can be set to defaults based on
created_by user.

If these fields are emptied by the submitting user they will be set to  whereas they are nil if they have not been initialized. In that case we will use meaningful defaults from the user who created the ticket.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
email and regarding user fields can be set to defaults based on
created_by user.

If these fields are emptied by the submitting user they will be set to  whereas they are nil if they have not been initialized. In that case we will use meaningful defaults from the user who created the ticket.
</pre>
</div>
</content>
</entry>
<entry>
<title>keep empty email field if user removed prefill</title>
<updated>2014-05-13T08:52:55+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-05-13T08:52:55+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=0261e82686ec4fcfc8b633664fadb1dd6d9c8070'/>
<id>0261e82686ec4fcfc8b633664fadb1dd6d9c8070</id>
<content type='text'>
We should respect the users choice. We can still get their email from the user id if we really need to.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We should respect the users choice. We can still get their email from the user id if we really need to.
</pre>
</div>
</content>
</entry>
<entry>
<title>using simple_form for the last form that was not using it.</title>
<updated>2014-04-25T10:18:40+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-04-23T13:27:40+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=6c13d3323c180a333fd0f32d17a62adce9fcf2bb'/>
<id>6c13d3323c180a333fd0f32d17a62adce9fcf2bb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
