feedbuilder-rails 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ module FeedBuilder
2
2
  module Rails
3
3
  module Controller
4
4
  def send_feed(filename, options = {}, &block)
5
- if Rails.env == 'development' || stale?(options)
5
+ if ::Rails.env == 'development' || stale?(options)
6
6
  feed ||= yield if block_given?
7
7
  send_data(feed.to_xml, :filename => filename, :type => :atom, :disposition => 'inline')
8
8
  end
@@ -1,9 +1,5 @@
1
1
  class ActiveRecord::Base
2
2
  def self.acts_as_feed_provider(options = {})
3
- unless (options.include?(:feed_id_domain) && options.include?(:feed_id_path)) || options.include?(:feed_id)
4
- raise ArgumentError, 'Must include either :feed_id_domain and :feed_id_path or :feed_id'
5
- end
6
-
7
3
  extend FeedBuilder::Provider
8
4
 
9
5
  self.feed_id_domain = options[:feed_id_domain]
@@ -1,5 +1,5 @@
1
1
  module FeedBuilder
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedbuilder-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Moseley
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-21 00:00:00 -05:00
18
+ date: 2010-12-22 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency