CHANGELOG 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # Version 1.3.1
  2. * Fix polymorphic_belongs_to to get the parent
  3. * Addes support for Rails 3.2
  4. * Addes support to responders >= 0.6.0
  5. # Version 1.3.0
  6. * Added support for multiple polymorphic optional nesting
  7. * Fix nested namespace in mountable apps
  8. * Added support for rails 3.1 new mass assignment conventions
  9. * Turn InheritedResources::Base into a reloadable constant to fix reloading issues
  10. # Version 1.2.2
  11. * Fix a bug in params parsing
  12. * Call .scoped only if it is available
  13. # Version 1.2.1
  14. * Fix a bug with namespaces
  15. * Use Post.scoped instead of Post.all in collection
  16. # Version 1.2
  17. * Improved lookup for namespaces (by github.com/Sirupsen)
  18. * Support to custom actions (by github.com/lda)
  19. * Rails 3.1 compatibility (by github.com/etehtsea)
  20. # Version 1.1
  21. * Rails 3 compatible
  22. # Version 1.0
  23. * responders was removed from InheritedResources core and is a dependency. To install it, please do:
  24. sudo gem install responders
  25. * has_scope was removed from InheritedResources core and is now available as a standalone gem.
  26. To install it, please do:
  27. sudo gem install has_scope
  28. # Version 0.9
  29. * Allow dual blocks in destroy;
  30. * Added :if and :unless to has_scope (thanks to Jack Danger);
  31. * Added create_resource, update_resource and delete_resource hooks (thanks to Carlos Antonio da Silva);
  32. * Backported ActionController::Responder from Rails 3;
  33. * Added parent_url helper;
  34. * Added association_chain helper (as suggested by http://github.com/emmanuel);
  35. # Version 0.8
  36. * Fixed a small bug on optional belongs to with namespaced controllers.
  37. * Allow a parameter to be given to collection_url in polymorphic cases to replace
  38. the parent.
  39. * Allow InheritedResources to be called without inheritance.
  40. * Ensure that controllers that inherit from a controller with InheritedResources
  41. works properly.
  42. # Version 0.7
  43. * Allow procs as default value in has scope to be able to use values from session, for example.
  44. * Allow blocks with arity 0 or -1 to be given as the redirect url:
  45. def destroy
  46. destroy!{ project_url(@project) }
  47. end
  48. * Allow interpolation_options to be set in the application controller.
  49. * Added has_scope to controller (an interface for named_scopes).
  50. * Added polymorphic_belongs_to, optional_belongs_to and singleton_belongs_to
  51. as quick methods.
  52. * Only load belongs_to, singleton and polymorphic helpers if they are actually
  53. required. base_helpers, class_methods, dumb_responder and url_helpers are loaded
  54. when you inherited from base for the first time.
  55. # Version 0.6
  56. * Ensure that the default template is not rendered if the default_template_format
  57. is not accepted. This is somehow related with the security breach report:
  58. http://www.rorsecurity.info/journal/2009/4/24/hidden-actions-render-templates.html
  59. IR forbids based on mime types. For example: respond_to :html, :except => :index
  60. ensures that the index.html.erb view is not rendered, making your IR controllers
  61. safer.
  62. * Fixed a bug that happens only when format.xml is given to blocks and then it
  63. acts as default, instead of format.html.
  64. * Fixed a strange bug where when you have create.html.erb or update.html.erb,
  65. it makes IE6 and IE7 return unprocessable entity (because they send Mime::ALL).
  66. * Stop rescueing any error when constantizing the resource class and allow
  67. route_prefix to be nil.
  68. * Cleaned up tests and responder structure. Whenever you pass a block to aliases
  69. and this block responds to the request, the other blocks are not parsed improving performance.
  70. * [BACKWARDS INCOMPATIBLE] By default, Inherited Resources respond only :html requests.
  71. * Added a quick way to overwrite the redirect to url in :create, :update and :destroy.
  72. # Version 0.5
  73. * Decoupled routes name from :instance_name and :collection_name. This way we
  74. have more flexibility. Use route_instance_name and route_collection_name to
  75. to change routes.
  76. * Avoid calling human_name on nil when a resource class is not defined.
  77. * Only call I18n if it's defined.
  78. # Version 0.4
  79. * Dealing with namespaced controllers out of the box.
  80. * Added support to namespaced routes through :route_prefix.
  81. * Added fix when resource_url is not defined.
  82. * Added better handling for namespaced controllers.
  83. * Added flash messages scoped by namespaced controllers.
  84. * Deprecated {{resource}} in I18n, use {{resource_name}} instead.
  85. * rspec bug fix is not automatically required anymore. User has to do it
  86. explicitly.
  87. * Added a file which fix a rspec bug when render is called inside a method
  88. which receives a block.
  89. * parent? does not take begin_of_association_chain into account anymore
  90. * Added options to url helpers.
  91. * Added :optional to belongs_to associations. It allows you to deal with
  92. categories/1/products/2 and /products/2 with just one controller.
  93. * Cleaned up tests.
  94. # Version 0.3
  95. * Minor bump after three bug fixes.
  96. * Bug fix when showing warning of constant redefinition.
  97. * Bug fix with ApplicationController not being unloaded properly on development.
  98. * Bug fix when having root singleton resources. Calling collection_url would
  99. raise "NoMethodError _url", not it will call root_url.
  100. * More comments on UrlHelpers.
  101. # Version 0.2
  102. * Bug fix when ApplicationController is already loaded when we load respond_to.
  103. * Added support success/failure blocks.
  104. * Eager loading of files to work properly in multithreaded environments.
  105. # Version 0.1
  106. * Added more helper_methods.
  107. * Added Rails 2.3.0 and changed tests to work with ActionController::TestCase.
  108. * First release. Support to I18n, singleton controllers, polymorphic
  109. controllers, belongs_to, nested_belongs_to and url helpers.