restfulx 1.2.3 → 1.2.4

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.
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ begin
16
16
  gem.add_dependency('activesupport', '>=2.0.0')
17
17
  end
18
18
  rescue LoadError
19
- puts "Jeweler not available. Install it with: sudo gem install jeweler"
19
+ puts "jeweler not available. Install it with: sudo gem install jeweler"
20
20
  end
21
21
 
22
22
  require 'rake/rdoctask'
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 2
4
- :patch: 3
4
+ :patch: 4
@@ -5,7 +5,7 @@
5
5
  module RestfulX
6
6
 
7
7
  # :stopdoc:
8
- FRAMEWORK_VERSION = '1.2.3'
8
+ FRAMEWORK_VERSION = '1.2.4'
9
9
  LIB_DIR = File.join(File.dirname(__FILE__), 'restfulx/')
10
10
  # :startdoc:
11
11
 
@@ -17,13 +17,13 @@ class <%= migration_name %> < ActiveRecord::Migration
17
17
  <% end -%>
18
18
  <% end -%>
19
19
  <% if attachment_field.size > 0 -%>
20
- <% if RxSettings.attachment_plugin == 'paperclip' -%>
20
+ <% if RestfulX::Configuration::RxSettings.attachment_plugin == 'paperclip' -%>
21
21
  # For paperclip
22
22
  t.column :<%= attachment_field[0] %>_file_name, :string
23
23
  t.column :<%= attachment_field[0] %>_content_type, :string
24
24
  t.column :<%= attachment_field[0] %>_file_size, :integer
25
25
  t.column :<%= attachment_field[0] %>_updated_at, :datetime
26
- <% elsif RxSettings.attachment_plugin == 'attachment_fu' -%>
26
+ <% elsif RestfulX::Configuration::RxSettings.attachment_plugin == 'attachment_fu' -%>
27
27
  # For attachment_fu
28
28
  t.column :parent_id, :integer
29
29
  t.column :content_type, :string
@@ -24,7 +24,7 @@ class <%= class_name %> < ActiveRecord::Base
24
24
  acts_as_category
25
25
  <% end -%>
26
26
  <% if attachment_field.size > 0 -%>
27
- <% if RxSettings.attachment_plugin == 'paperclip' -%>
27
+ <% if RestfulX::Configuration::RxSettings.attachment_plugin == 'paperclip' -%>
28
28
  # paperclip examples:
29
29
  # http://github.com/thoughtbot/paperclip/tree/master
30
30
  has_attached_file :<%= attachment_field[0] %>,
@@ -33,7 +33,7 @@ class <%= class_name %> < ActiveRecord::Base
33
33
  def attachment_url
34
34
  <%= attachment_field[0] %>.url(:original)
35
35
  end
36
- <% elsif RxSettings.attachment_plugin == 'attachment_fu' -%>
36
+ <% elsif RestfulX::Configuration::RxSettings.attachment_plugin == 'attachment_fu' -%>
37
37
  # attachment_fu examples:
38
38
  # http://github.com/technoweenie/attachment_fu/blob/ab1e4f7b0b9de85e0c9decf061d2ef5c1dc0feaa/README#L56-69
39
39
  has_attachment
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restfulx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dima Berastau
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-16 00:00:00 -07:00
12
+ date: 2009-08-03 00:00:00 +03:00
13
13
  default_executable: rx-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency