Permalink
Browse files

Removed trailing whitespace.

  • Loading branch information...
1 parent 608698f commit cee9a893e9fd84d0591e61937c6e662d104ea96a @gunn committed Dec 18, 2012
@@ -279,7 +279,7 @@ def value
register_instance_option :allowed_methods do
[method_name]
end
-
+
def parse_input(params)
# overriden
end
@@ -16,7 +16,7 @@
end.map{|k| association[k] }.compact
parent.abstract_model.properties.select{|p| possible_field_names.include? p[:name] }.each do |column|
- unless child_field = fields.find{|f| f.name.to_s == column[:name].to_s }
+ unless child_field = fields.find{|f| f.name.to_s == column[:name].to_s }
child_field = RailsAdmin::Config::Fields.default_factory.call(parent, column, fields)
end
child_columns << child_field
@@ -16,9 +16,9 @@ class Boolean < RailsAdmin::Config::Fields::Base
case value
when nil
%{<span class="badge">-</span>}
- when false
+ when false
%{<span class="badge badge-important">&#x2718;</span>}
- when true
+ when true
%{<span class="badge badge-success">&#x2713;</span>}
end.html_safe
end
@@ -1,5 +1,5 @@
class Comment < ActiveRecord::Base
attr_accessible :commentable_id, :commentable_type, :content
-
+
belongs_to :commentable, :polymorphic => true
end
@@ -4,7 +4,7 @@
class Team < ActiveRecord::Base
attr_accessible :name, :division, :division_id, :logo_url, :manager, :ballpark, :mascot, :founded, :wins, :losses, :win_percentage, :revenue, :color, :custom_field, :fan_ids, :player_ids, :comment_ids
-
+
has_many :players, :inverse_of => :team, :order => :id
has_and_belongs_to_many :fans
has_many :comments, :as => :commentable
@@ -17,7 +17,7 @@ class Team
field :revenue, :type => BigDecimal
field :color, :type => String
field :custom_field, :type => String
-
+
attr_accessible :name, :division, :division_id, :logo_url, :manager, :ballpark, :mascot, :founded, :wins, :losses, :win_percentage, :revenue, :color, :custom_field, :fan_ids, :player_ids, :comment_ids
has_many :players, :inverse_of => :team, :order => :_id.asc
@@ -89,9 +89,9 @@
@league = FactoryGirl.create :league
@divisions = 3.times.map { Division.create!(:name => "div #{Time.now.to_f}", :league => League.create!(:name => "league #{Time.now.to_f}")) }
-
+
page.driver.put edit_path(:model_name => "league", :id => @league.id, :league => {:name => "National League", :division_ids => [@divisions[0].id] })
-
+
old_name = @league.name
@league.reload
expect(@league.name).to eq("National League")
@@ -398,7 +398,7 @@ class HelpTest < Tableless
after :each do
I18n.locale = :en
end
-
+
it "delegates the label option to the ActiveModel API and memoizes it" do
RailsAdmin.config Team do
edit do
@@ -54,7 +54,7 @@ def do_request
describe "css hooks" do
it "is present" do
do_request
-
+
should have_selector("dt .name_field.string_type")
end
end

0 comments on commit cee9a89

Please sign in to comment.