Skip to content

Commit

Permalink
Several bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
swistak committed Jan 31, 2010
1 parent 8cf33fc commit 7cb83fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -57,7 +57,7 @@ Thrid shows the 2d table for variant choosing.
## Instalation

For git users:
<code>git submodule add git://github.com/swistak/spree-enchanced-option-types.git vendor/enchanced_option_types</code>
<code>git submodule add git://github.com/swistak/spree-enchanced-option-types.git vendor/extensions/enchanced_option_types</code>

for others (or git users that don't like submodules):
<code>ruby script/extension install git://github.com/swistak/spree-enchanced-option-types.git</code>
Expand Down
2 changes: 1 addition & 1 deletion app/models/option_value_decorator.rb
@@ -1,5 +1,5 @@
OptionValue.class_eval do
validates_numericality_of :amount
validates_numericality_of :amount, :allow_nil => true

after_update :adjust_variant_prices, :if => :amount_changed?

Expand Down
2 changes: 1 addition & 1 deletion app/views/products/_eot_includes.html.erb
Expand Up @@ -20,4 +20,4 @@ end
And if you really really really want to please make sure they are wrapped into
document ready event (it's not needed here as we put script AFTER everything we need is in DOM and loaded)
%>
<script type="text/javascript" src="/javascripts/enchanced-option-types.js"></script>
<%= javascript_include_tag('enchanced-option-types.js') %>
4 changes: 2 additions & 2 deletions enchanced_option_types_extension.rb
Expand Up @@ -16,8 +16,8 @@ def activate
base = File.dirname(__FILE__)
Dir.glob(File.join(base, "app/**/*_decorator.rb")){|c| load(c)}

FileUtils.cp Dir.glob(File.join(base, "public/stylesheets/*.css")), File.join(RAILS_ROOT, "public/stylesheets/")
FileUtils.cp Dir.glob(File.join(base, "public/javascripts/*.js")), File.join(RAILS_ROOT, "public/javascripts")
# FileUtils.cp Dir.glob(File.join(base, "public/stylesheets/*.css")), File.join(RAILS_ROOT, "public/stylesheets/")
# FileUtils.cp Dir.glob(File.join(base, "public/javascripts/*.js")), File.join(RAILS_ROOT, "public/javascripts")

# make your helper avaliable in all views
Spree::BaseController.class_eval do
Expand Down

0 comments on commit 7cb83fb

Please sign in to comment.