dima-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/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 2
4
- :patch: 3
4
+ :patch: 4
data/lib/restfulx.rb CHANGED
@@ -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: dima-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-15 00:00:00 -07:00
12
+ date: 2009-08-01 00:00:00 -07:00
13
13
  default_executable: rx-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -185,6 +185,7 @@ files:
185
185
  - test/rails/views/notes/index.html.erb
186
186
  has_rdoc: true
187
187
  homepage: http://restfulx.org
188
+ licenses:
188
189
  post_install_message:
189
190
  rdoc_options:
190
191
  - --charset=UTF-8
@@ -205,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
206
  requirements: []
206
207
 
207
208
  rubyforge_project: restfulx
208
- rubygems_version: 1.2.0
209
+ rubygems_version: 1.3.5
209
210
  signing_key:
210
211
  specification_version: 2
211
212
  summary: RestfulX Framework Code Generation Engine / Rails 2.1+ Integration Support